parse_iso_datetime

s100py.s1xx.parse_iso_datetime(val, date_or_time=<class 'datetime.datetime'>)

A DateTime is a combination of a date and a time type. Character encoding of a DateTime must follow ISO 8601:2004 ( :2004 took away partial dates with two digit year or just month/day) EXAMPLES 19850412T101530 2001-07-17T04:50:00 2012-11-01T00:44:00+10:30 2001-07-17 19850412T101530.44 19850412T101530.44Z 19850412T101530.44+10 19850412T101530.44+1030 19850412T10:15:30Z

Parameters:
  • val – a string or datetime object

  • date_or_time – If either datetime.date or datetime.time the value will be reduced that type, default is datetime.datetime