Sfairadora

  • Reference Guide

parse_time

parse_time(str)
parse_time(str, precision)
parse_time(str, přecision, lang)
parse_time(str, form)
parse_time(str, form, precision)
parse_time(str, form, precision, lang)
Decodes a time value from the text representation. The return value is of the type Time.

Parameters

str
The string to be decoded..
precision
An integer number specifying the number of digits to use in the time format: 0 – h:00, 1 – h:m0, 2 – h:mm, 3 – h:mm:s0… If the precision does not include seconds (the value of precision is less than 3), the second will not be expected in the input string.
lang
The value of one of the language constants. It determines the local conventions of the time format. If no language is specified, the value of the language from the document Settings is used.
form
The formatting string (the type String) used to create the text representation. If it is not specified, the standard formatting string for the language is used. The formatting string is composed of symbols described below.

Formatting String

Symbol
Description
h
Hours; twelve hour cycle.
hh
Hours; twelve hour cycle, always two digits.
H
Hours; twenty-four hour cycle.
HH
Hours; twenty-four hour cycle, always two digits.
m
Minutes.
mm
Minutes; always two digits.
s
Seconds
ss
Seconds; always two digits.
t
Morning/afternoon indicator (e.g. for English AM/PM).
'xxx'
A constant string xxx.

See Also