Sfairadora

  • Reference Guide

parse_date_time

parse_date_time(str)
parse_date_time(str, precision)
parse_date_time(str, precision, lang)
parse_date_time(str, form)
parse_date_time(str, form, precision)
parse_date_time(str, form, precision, lang)
Decodes date and time from the text representation. The return value is of the type Date_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 date and 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 parse 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
yy
Year; exactly two digits.
yyyy
Year; four digits.
M
Ordinal number of the month.
MM
Ordinal number of the month; always two digits. The values less than 10 have a leading zero.
MMM
Abbreviated name of the month.
MMMM
Full name of the month.
d
Day in month.
dd
Day in month; always two digits.
ddd
Abbreviated name of day of week.
dddd
Full name of day of week.
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