Skip to content
Ahmed Hisham Ismail edited this page Jun 27, 2014 · 3 revisions

utils.date_time_iso_format

The date_time_iso_format method takes one parameter a datetime.datetime object and returns the ISO 8601 representation of it.

utils.datetime_from_iso_format

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

spdx.config.TwoWayDict

A two way dictionary, extends dict. Used for the license map to map identifiers to full names and vice versa.