Decodes a time into a dynamic array of information about that time.
Info = SRP_Time("Decode", Time)
Returns
An @FM delimited array of information about the time. See Remarks.
Parameters
Parameter | Description |
---|---|
Time | A time in OI internal format. (REQUIRED) |
Remarks
The "Decode" service breaks down an OI time into an @FM delimited array of information about the time. The structure of the returned array is as follows:
Field | Description | See Also |
---|---|---|
<1> | The hour component of the time. 0 - 23. | Hour |
<2> | The minute component of the time. 0 - 59. | Minute |
<3> | The second component of the time. 0 - 59. | Second |
For example, if the OI time represents 12:41:08pm, the result would be:
12:@FM:41:@FM:8
Examples
// Decode the current time Info = SRP_Time("Decode", Time()) // Decode the current UTC time Info = SRP_Time("Decode", SRP_Time("Now", 1)) // Decode a hard coded time Info = SRP_Time("Decode", 56013) // Decode a time that's formatted in a string Time = SRP_Time("Parse", "12:41:08pm", "h:mm:sstt") Info = SRP_Time("Decode", Time)