parseTime

parseTime, pure function

def pure parseTime(source: text) : number 
def pure parseTime(source: text, formats: text) : number 

// scalar format version
def pure parseTime(source: text; format: text) : number

Converts a time of the day into a fraction between 0 and 1, representing a fractional day. The default format yyyy-MM-dd HH:mm:ss is used if the format is not specified.

Converts a time of the day into a fraction between 0 and 1, representing a fractional day. Envision is using the format defined in the Date & time format page. The date information is accepted but discarded.

For better error handling, the usage of tryParseTime is favoured.

See also

User Contributed Notes
0 notes + add a note