I present two tables that reformat the Python strptime, strftime documentation. The first is a short table with the most useful directives, the second is a longer table with all of the directives. This is easier for me to scan than the native docs. Hopefully it will help others as well.
| Unit | Directive | Description | Example |
|---|---|---|---|
| YEAR | %Y | 4-digit | 1970, 1988, 2001, 2013 |
| MONTH | %m | Decimal zero-padded | 01, 02, ..., 12 |
| DAY | %d | Decimal zero-padded | 01, 02, ..., 31 |
| HOUR | %H | 24-hour clock, zero-padded | 00, 01, ..., 23 |
| MINUTE | %M | Decimal zero-padded | 00, 01, ..., 59 |
| SECOND | %S | Decimal zero-padded | 00, 01, ..., 59 |
| TIMEZONE | %z | UTC offset | (empty), +0000, -0400, +1030 |
| ISO format | %Y-%m-%dT%H:%M:%S%z | ||