Measurements

ValueDescription
british

British Standard

metric

Metric

native

Show measurements in the local format.

standard

US Standard.

            


Date and Time

ElementDescription
yyyyFour digit year.
MMTwo digit month.
ddTwo digit day of the month.
TA separator between date and time.
HHTwo digit hours ranging from 00 to 23.
mmTwo digit minute.
ssTwo digit second.
fffOptional three digit millisecond.
ZA terminator representing the UTC timezone.


Date and Time Formatting

Format

ddd MMM d, yyyy→Mon Apr 18, 2016 yyyy-MM-dd→2016-04-18

also

h:mm:ss tt→2:44:40 PM h\h mm\m ss\s→2h 44m 40s


Explanation
ElementDescription
yyTwo digit year
yyyyFour digit year.
MOne or two digit month
MMTwo digit month.
MMMAbbreviated month name (ie: Jan)
MMMMMonth name
dOne or two digit day of the month.
ddTwo digit day of the month.
dddAbbreviated day name (ie: Mon)
ddddDay name (ie: Monday)
hOne or two digit hour ranging from 0 to 12.
HOne or two digit hour ranging from 0 to 23.
hhTwo digit hour ranging from 00 to 12.
HHTwo digit hours ranging from 00 to 23.
mOne or two digit minute.
mmTwo digit minute.
sOne or two digit second
ssTwo digit second.
fOne digit millisecond
ffTwo digit millisecond
fffThree digit millisecond.
tFirst letter of meridium (ie: A or P)
ttMeridium (ie: AM or PM)
\Escape the next character (ie h\h → 9h)