Database Reference
In-Depth Information
Code Description
Results
%T Time, 24-hour
(hh:mm:ss)
%u Week, where Monday is the first day of the week
(0…52)
%U Week, where Sunday is the first day of the week
(0…52)
%v Week, where Monday is the first day of the week; used with `%x'
(1…53)
%V Week, where Sunday is the first day of the week; used with `%X'
(1…53)
%w Day of the week
(0=Sunday…6=Saturday)
%W Weekday name
(Sunday…Saturday)
%x Year for the week, where Monday is the first day of the week (numeric,
four digits); used with `%v'
(yyyy)
%X Year for the week, where Sunday is the first day of the week (numeric,
four digits); used with `%V'
(yyyy)
%y Year (numeric, two digits)
(yy)
%Y Year (numeric, four digits)
(yyyy)
%% A literal `%'
Different places in the world prefer various standards for formatting the date and time. In
the next section, we'll look at this and how to adjust to the time zones of otherregions.
Search WWH ::




Custom Search