Reference: Dates and times¶
Quick-lookup pages. Short, dense, and designed to skim. If you're here to learn the topic for the first time, start with Learn instead.
Pages in this section¶
strftimeandstrptimeformat codes — the full table of format directives, with examples for each.timedeltaarithmetic patterns — adding and subtracting durations, comparing, and the operations that don't quite work as expected.zoneinforeference — looking up time zones, converting, and theavailable_timezones()catalogue.