Format | Description |
%a | locale's abbreviated weekday name (e.g., Sun) |
%A | locale's full weekday name (e.g., Sunday) |
%b | locale's abbreviated month name (e.g., Jan) |
%B | locale's full month name (e.g., January) |
%C | century; like %Y, except omit last two digits (e.g., 21) |
%d | day of month (e.g, 01) |
%e | day of month |
%F | full date; same as %Y-%m-%d |
%g | the last two digits of the year |
%G | the year |
%h | same as %b |
%H | hour (00..23) |
%I | hour (01..12) |
%j | day of year (001..366) |
%k | hour ( 0..23) |
%I | hour ( 1..12) |
%m | month (01..12) |
%M | minute (00..59) |
%p | locale's equivalent of either AM or PM; blank if not known |