Page
Library
Module
Module type
Parameter
Class
Class type
Source
Xapi_stdext_date.DateSourceAdditional types and functions for dates
An ISO-8601 date/time type.
Convert calendar time x (as returned by e.g. Unix.time), to time in UTC.
Convert date/time to a float value: the number of seconds since 00:00:00 UTC, 1 Jan 1970. * Assumes the underlying iso8601 is in UTC
Convert ISO 8601 formatted string to a date/time value. * Does not accept a timezone annotated datetime - i.e. string must be UTC, and end with a Z
Raises an Invalid_argument exception if the given date is not a UTC date. * A UTC date is an ISO 8601 strings that ends with the character 'Z'.
exposed for testing
An RFC 822 date/time type.
Convert calendar time x (as returned by e.g. Unix.time), to RFC 822.