| Command | Specifies
|
| %a
| Abbreviated weekday name, according to the current locale
|
| %A
| Full weekday name, according to the current locale
|
| %b
| Abbreviated month name, according to the current locale
|
| %B
| Full month name, according to the current locale
|
| %c
| Preferred date and time representation for the current locale
|
| %d
| Day of the month as a decimal number (ranging from 0 to 31)
|
| %m
| Month as a decimal number (ranging from 10 to 12)
|
| %U
| Week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week
|
| %W
| Week number of the current year as a decimal number, starting with the first Monday as the first day of the first week
|
| %w
| Day of the week as a decimal, with Sunday being 0
|
| %x
| Preferred date representation for the current locale without the time
|
| %y
| Year as a decimal number without a century (ranging from 00 to 99)
|
| %Y
| Year as a decimal number, including the century
|
| %H
| Hour as a decimal number using a 24-hour clock (ranging from 00 to 23)
|
| %I
| Hour as a decimal number, using a 12-hour clock (ranging from 01 to 12)
|
| %j
| Day of the year as a decimal number (ranging from 001 to 366)
|
| %M
| Minute as a decimal number |
| %p
| Either a.m. or p.m., according to the given time value or the corresponding strings for the current locale
|
| %S
| Second as a decimal number |
| %X
| Preferred time representation for the current locale without the date
|
| %Z
| Time zone, name, or abbreviation |