Home | Trees | Indices | Help |
|
---|
|
object --+ | CIMType --+ | object --+ | | | _CIMComparisonMixin --+ | CIMDateTime
A value of CIM type datetime.
The object represents either a timezone-aware point in time, or a time interval.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Methods | |||
|
|||
|
Static Methods | |||
|
Properties | |
minutes_from_utc The timezone offset of a point in time object as +/- minutes from UTC. |
|
datetime The point in time represented by the object, as a datetime.datetime
object.
|
|
timedelta The time interval represented by the object, as a datetime.timedelta
object.
|
|
is_interval A boolean indicating whether the object represents a time interval ( True ) or a point in time (False ).
|
|
Inherited from |
Method Details |
Initialize the `CIMDateTime` object from different types of input object. :Parameters: dtarg The input object, as one of the following types: * A Unicode string or UTF-8 encoded byte string will be interpreted as CIM datetime format (see DSP0004) and will result in a point in time or a time interval. * A `datetime.datetime` object must be timezone-aware and will result in a point in time. * A `datetime.timedelta` object will result in a time interval. * Another `CIMDateTime` object will be copied. :Raises: :raise ValueError: :raise TypeError:
|
Return the timezone offset of the current local timezone from UTC. A positive value indicates minutes east of UTC, and a negative value indicates minutes west of UTC. |
Factory method that returns a new CIMDateTime object representing the current date and time. The optional timezone information is used to convert the CIM datetime
value into the desired timezone. That does not change the point in time
that is represented by the value, but it changes the value of the
|
Factory method that returns a new CIMDateTime object from a POSIX timestamp value and optional timezone information. A POSIX timestamp value is the number of seconds since 1970-01-01 00:00:00 UTC. Thus, a POSIX timestamp value is unambiguous w.r.t. the timezone. The optional timezone information is used to convert the CIM datetime
value into the desired timezone. That does not change the point in time
that is represented by the value, but it changes the value of the
|
|
|
Property Details |
minutes_from_utcThe timezone offset of a point in time object as +/- minutes from UTC. A positive value of the timezone offset indicates minutes east of UTC, and a negative value indicates minutes west of UTC. 0, if the object represents a time interval.
|
datetimeThe point in time represented by the object, as a
|
timedeltaThe time interval represented by the object, as a
|
is_intervalA boolean indicating whether the object represents a time interval (True ) or a point in time (False ).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri May 13 17:29:21 2016 | http://epydoc.sourceforge.net |