Date format

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
Line 26: Line 26:
 
||%m||two digit month (01, ..., 12)
 
||%m||two digit month (01, ..., 12)
 
|-
 
|-
|%M|two digit minute (00, ..., 59)
+
|%M||two digit minute (00, ..., 59)
 
|-
 
|-
 
||%p||am/pm
 
||%p||am/pm

Revision as of 17:11, 3 January 2006


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

Pattern Meaning
%a short weekday (Sun, Mon, Tue, ...)
%A long weekday (Sunday, Monday, ...)
%b short month (Jan, Feb, ...)
%B long month (January, February, ...)
%c local date string
%d two digit day of month (01, 02, ...)
%H two digit 24 hour (00, 01, 02, ..., 22, 23)
%I two digit 12 hour (01, 02, ..., 12)
%j three digit day of year (001, ..., 365)
%m two digit month (01, ..., 12)
%M two digit minute (00, ..., 59)
%p am/pm
%S two digit second
%s three digit millisecond
%W two digit week of year (01, ..., 52)
%w one digit day of week (0, ..., 7)
%y two digit year (00, ..., 99)
%Y three digit year (1999, 2000)
%Z time zone name ("GMT", "PST")
%z time zone offset ("+0700")

See Also

Personal tools