Timefmt Field Descriptors
Field Descriptor
|
Description
|
Example
|
%a
|
Abbreviated weekday name
|
Mon
|
%A
|
Full weekday name
|
Monday
|
%b
|
Abbreviated month name
|
Jun
|
%B
|
Full month name
|
June
|
%c
|
Date and time
(like %A, %d %B %Y %I:%M:%S %P)
|
Monday, 10 November, 1997 11:08:59 AM
|
%d
|
Day of month from 01 through 31
|
05
|
%H
|
Hour in military time from 00 through 23
|
22
|
%I
|
Hour in civilian time from 00 through 12
|
10
|
%j
|
Day of year
|
156
|
%m
|
Month from 01 through 12
|
06
|
%M
|
Minute from 00 through 59
|
21
|
%p
|
AM or PM
|
PM
|
%S
|
Seconds from 00 through 59
|
14
|
%U
|
Week number of year, beginning on Sunday
|
23
|
%w
|
Day of week as a number (Sunday is day 0)
|
0
|
%W
|
Week number of year, beginning on Monday
|
22
|
%x
|
Date, in the form "Day Month, Year" (%d %B, %Y)
|
10 November, 1997
|
%X
|
Time, using the HH:MM:SS (Hours:Minutes:Seconds) format
|
22:21:14
|
%y
|
Year in two digit format, from 00 through 99
|
97
|
%Y
|
Year in four digit format
|
1997
|
%%
|
A percent sign (%)
|
%
|