Python Core Cheatsheet
7 minutes
25 July 2025
Date and Time Date Directives Format Meaning Example %Y Year (4 digits) 2025 %y Year (2 digits) 25 %m Month (01-12) 07 %B Full month name July %b Abbreviated month name Jul %d Day of the month (01–31) 17 %j Day of year (001–366) 198 %A Full weekday name Thursday...