diff --git a/README.md b/README.md index c21d5a1..70ac715 100644 --- a/README.md +++ b/README.md @@ -507,23 +507,22 @@ import pytz ### Decode ```python = .isoformat() # ISO string representation. - = .strftime('') # Customized string representation. + = .strftime('') # Custom string representation. = .toordinal() # Days since Christ, ignoring time and timezone. =
.timestamp() # Seconds since Epoch in local time or tz if set. ``` -### ISO Formats +### Format +#### ISO: * **Date: `'YYYY-MM-DD'`.** * **Time: `'HH:MM:SS.ffffff[+]'`.** * **Datetime: `'YYYY-MM-DDTHH:MM:SS.ffffff[+]'`.** - -### Format +#### Strptime, strftime: ```python >>> dt = datetime.strptime('2015-05-14 23:39:00', '%Y-%m-%d %H:%M:%S') ``` -#### Rest of the codes: * **`'y'` - Year, 2 digits** * **`'b'` - Month, abbreviated name** * **`'B'` - Month, full name**