-
Notifications
You must be signed in to change notification settings - Fork 1
Miscellaneous
Ahmed Hisham Ismail edited this page Jun 27, 2014
·
3 revisions
The date_time_iso_format
method takes one parameter a datetime.datetime
object and returns the ISO 8601 representation of it.
The datetime_from_iso_format
method takes one parameter a str
and returns a datetime.datetime
object.
If the string is not an ISO 8601 representation of a date it returns None
.
Note:
The statement.
date == date_time_from_iso_format(date_time_iso_format(date))
Is always True
A two way dictionary, extends dict
.
Used for the license map to map identifiers to full names and vice versa.