xsd.dateTimeStamp
¶
The xsd.dateTimeStamp
class represents instants of time with a required explicit timezone offset.
Base class: xsd.dateTime
-> xsd.anyAtomicType
-> xsd.anySimpleType
-
class
xsd.
dateTimeStamp
(value)¶
Attributes¶
-
xsd.dateTime.
date
Returns the date part of the
xsd.dateTime
value asxsd.date
object.
-
xsd.dateTime.
day
Returns the day part of the
xsd.dateTime
value as native int.
-
xsd.dateTime.
hour
Returns the hour part of the
xsd.dateTime
value as native int.
-
xsd.anySimpleType.
lexical_value
Returns the lexical representation of the datatype as native str.
-
xsd.dateTime.
minute
Returns the minute part of the
xsd.dateTime
value as native int.
-
xsd.dateTime.
month
Returns the month part of the
xsd.dateTime
value as native int.
-
xsd.dateTime.
second
Returns the second part of the
xsd.dateTime
value as decimal.Decimal.
-
xsd.dateTime.
time
Returns the time part of the
xsd.dateTime
value asxsd.time
object.
-
xsd.dateTime.
timezoneOffset
Returns the timezone offset part of the
xsd.dateTime
value in form of mintues in the range of -840 to 840 as native int.
-
xsd.dateTime.
value
Returns the
xsd.dateTime
value as datetime.datetime.
-
xsd.dateTime.
year
Returns the year part of the
xsd.dateTime
value as native int.
Methods¶
-
xsd.anySimpleType.
is_boolean
() Returns True if the datatype object is of type boolean.
-
xsd.anySimpleType.
is_decimal
() Returns True if the datatype object is of type decimal or derived from type decimal.
-
xsd.anySimpleType.
is_double
() Returns True if the datatype object is of type double.
-
xsd.anySimpleType.
is_duration
() Returns True if the datatype object is of type duration.
-
xsd.anySimpleType.
is_float
() Returns True if the datatype object is of type float.
-
xsd.anySimpleType.
is_integer
() Returns True if the datatype object is of type decimal or derived from type integer.
-
xsd.anySimpleType.
is_numeric
() Returns True if the datatype object is a numeric type.
-
xsd.anySimpleType.
is_string
() Returns True if the datatype object is a string type.
Special methods¶
__bool__, __eq__, __float__, __ge__, __gt__, __int__, __le__, __lt__, __ne__