LocalTime
Parameters
timeZone
The time zone to use for formatting the time. If not present, defaults to the timezone set by the client. Examples:
Europe/Stockholm
GMT+0:45
locale
The locale to use for formatting the time, or ""
for the root locale. Examples:
en_US
: English language (used for things like week names), formating as in the USA.cs_AU@numbers=thai;calendar=japanese
: Czech language, Australian formatting, Thai numerals and Japanese calendar
pattern
The pattern to be used for formatting the time. Examples:
yyyy-MM-dd
: 4-digit year number, then 2-digit month number, then 2-digit day of month number, all zero-padded if needed, separated by-
.HH:mm:ss
: current time (hours, minutes, seconds), 24-hour cycle, all zero-padded to 2 digits of needed, separated by:
.