Time tostring
Aus ExpeccoWiki
Schema
Operations
- Time [ ToString ]
Convert to String using an optional format string.
valid format items are:
%h hours, 00..23 (i.e. european) 0-padded to length 2
%u hours, 00..12 (i.e. us) 0-padded to length 2
%m minutes, 00..59 0-padded to length 2
%s seconds, 00..59 0-padded to length 2
%i milliseconds, 000..999 0-padded to length 3
%a am/pm
Timestamp only:
%(day) day, 00..31 0-padded to length 2
%(month) month, 00..12 0-padded to length 2
%(year) year, 4 digits 0-padded to length 4
special:
%H 24-hours - unpadded
%U 12-hours - unpadded
%M minutes - unpadded
%S seconds - unpadded
%I milliseconds, unpadded
%A AM/PM - uppercase
%t seconds within hour (unpadded)
%T seconds from midNight (unpadded)
%(TZD) timeZone delta from UTC in the format +/-hh:mm
%milli1 milliseconds, truncated to 1/10th of a second 0..9
%milli2 milliseconds, truncated to 1/100th of a second 00..99 0-padded to length 2
%nth - counting day-in-month (1->'st'; 2->'nd'; 3->'rd'; 4...->'th')
%weekDayNth - counting day-in-week (1->'st'; 2->'nd'; 3->'rd'; 4...->'th')
%weekNth - counting week-in-year (1->'st'; 2->'nd'; 3->'rd'; 4...->'th')
%Day day - unpadded
%Month month - unpadded
%(yearOrTime) year or time 5 digits as in unix-ls:
year if it is not the current year;
time otherwise
Back to Standard Library.
Previous: Time [ Compute Duration ]
Next: Time [ To ISO8601 Format String]
