%a | Abbreviated weekday name | Sat |
%A | Full weekday name | Saturday |
%b | Abbreviated month name | Oct |
%B | Full month name | October |
%C | Century number (year/100) as a 2-digit integer | 20 |
%d | Day of the month, padded to 2 digits (01-31) | 01 |
%D | Equivalent to %m/%d/%y in en-US | 10/01/22 |
%e | Day of the month, padded with a leading space for single digit values (1-31) | 1 |
%F | Equivalent to %Y-%m-%d (the ISO 8601 date format) | 2022-10-01 |
%h | Equivalent to %b (abbreviated month name) | Oct |
%H | The hour (24-hour clock), padded to 2 digits (00-23) | 04 |
%I | The hour (12-hour clock), padded to 2 digits (01-12) | 04 |
%j | Day of the year, padded to 3 digits (001-366) | 274 |
%k | The hour (24-hour clock), padded with a leading space for single digit values (0-23) | 4 |
%l | The hour (12-hour clock), padded with a leading space for single digit values (1-12) | 4 |
%m | The month, padded to 2 digits (01-12) | 10 |
%n | Newline character |
|
%M | The minute, padded to 2 digits (00-59) | 03 |
%p | "AM" or "PM" | AM |
%P | "am" or "PM" | am |
%r | Equivalent to %I:%M:%S %p (time in a.m. or p.m. notation) | 04:03:29 AM |
%R | Equivalent to %H:%M (time in 24-hour notation) | 04:03 |
%s | N umber of seconds since the Epoch (1970-01-01 00:00:00 +0000), UTC | 1664597009 |
%S | The second, padded to 2 digits (00-60) | 29 |
%t | Tab character | |
%T | Equivalent to %H:%M:%S (time in 24-hour notation) | 04:03:29 |
%u | Weekday, Monday being 1 (1-7) | 6 |
%U | Week number of the year, Sunday as the first day of the week, padded to 2 digits (00-53) | 39 |
%w | Weekday, Sunday being 0 (0-6) | 6 |
%W | Week number of the year, Monday as the first day of the week, padded to 2 digits (00-53) | 39 |
%y | The year without the century (00-99) | 22 |
%Y | The year with the century | 2022 |
%z | The +hhmm or -hhmm numeric timezone (that is, the hour and minute offset from UTC) | +0000 |
%Z | The time zone name, replaced with an empty string if it is not found | Coordinated Universal Time |
%% | A % sign | % |