ph_minutestostring PowerHome formula function
Description
Use this function to convert a numeric
representation of minutes into a
string.
Syntax
ph_minutestostring ( minutes, flags
)
Argument |
Description |
minutes |
Double. A decimal number representing the minutes to conver.
For one hour, three and a half minutes, the value would be 63.5 |
flags
|
Integer. This parameter controls how to
structure the output string. See
usage below.
|
Return value
String. The minutes converted into a string
representation
is returned.
Usage
Details of the flags parameter is in the
table below:
1 |
Add 1 to the flags parameter to include milliseconds in
the string output. |
2 |
Add 2 to the flags parameter to include seconds in the
string output. |
4 |
Add 4 to the flags parameter to include minutes in the
string output. |
8 |
Add 8 to the flags parameter to include hours in the
string output. |
16 |
Add 16 to the flags parameter to include days in the
string output. |
32 |
Add 32 to the flags parameter to include weeks in the
string output. |
64 |
Add 64 to the flags parameter to include months in the
string output. |
128 |
Add 128 to the flags parameter to include years in the
string output. |
256
|
Add 256 to the flags parameter to
include all other specified values in the output even if they
are blank.
|
Add individual values together to get the
flags value.
Examples
The following examples demonstrate typical syntax/usage for this function.
ph_minutestostring(63.5,14)
The above
example will take 63 and a half minutes and will convert it into hours, minutes,
and seconds (flags = 14). The returned output will be: 1 hour, 3 minutes, 30
seconds