Date format

From CauchoWiki

Jump to: navigation, search


Date strings in timestamps and in the path-format and archive-format of logs have a pattern format:

PatternMeaning
%ashort weekday (Sun, Mon, Tue, ...)
%Along weekday (Sunday, Monday, ...)
%bshort month (Jan, Feb, ...)
%Blong month (January, February, ...)
%clocal date string
%dtwo digit day of month (01, 02, ...)
%Htwo digit 24 hour (00, 01, 02, ..., 22, 23)
%Itwo digit 12 hour (01, 02, ..., 12)
%jthree digit day of year (001, ..., 365)
%mtwo digit month (01, ..., 12)
%Mtwo digit minute (00, ..., 59)
%pam/pm
%Stwo digit second
%sthree digit millisecond
%Wtwo digit week of year (01, ..., 52)
%wone digit day of week (0, ..., 7)
%ytwo digit year (00, ..., 99)
%Ythree digit year (1999, 2000)
%Ztime zone name ("GMT", "PST")
%ztime zone offset ("+0700")

[edit] See Also

Personal tools