Module datetime

Module datetime 

Source
Expand description

Timestamps are formatted as a string with a max length of 25 chars. Each timestamp follows RFC 3339, with some additional limitations. All timestamps are expected to be in UTC. The absence of the timezone designator implies a UTC timestamp. Fractional seconds may be used.

§Examples

Example of how timestamps should be formatted in OCPI, other formats/patterns are not allowed:

  • "2015-06-29T20:39:09Z"
  • "2015-06-29T20:39:09"
  • "2016-12-29T17:45:09.2Z"
  • "2016-12-29T17:45:09.2"
  • "2018-01-01T01:08:01.123Z"
  • "2018-01-01T01:08:01.123"

Enums§

WarningKind
The warnings that can happen when parsing or linting a NaiveDate, NaiveTime, or DateTime.