maxon.UniversalDateTime

Description

Class that represents the Universal date-time (UTC+0000).

This class should be used whenever you store date and time data and should be converted to the maxon.LocalDateTime for a local output as late as possible.
The internal representation is an unsigned 64-Bit integer and contains the standard Unix date-time starting with 01/01/1970-00:00 UTC+0000.

The resolution of this date-time class is 1-second.

Inheritance diagram

Inheritance

Parent Class:

Methods Signature

ConvertToLocalDateTime()

Converts the universal date-time to a local date-time object in the current timezone.

FromUnixTimestamp(timestamp)

Create a universal date-time object by passing a Unix time stamp.

Methods Definition

UniversalDateTime.ConvertToLocalDateTime()

Converts the universal date-time to a local date-time object in the current timezone.

Returns

The local date-time object.

Return type

maxon.LocalDateTime

static UniversalDateTime.FromUnixTimestamp(timestamp)

Create a universal date-time object by passing a Unix time stamp.

Parameters

timestamp (int) – The unix time stamp to be converted.

Returns

The universal date-time representation.

Return type

maxon.UniversalDateTime