DateTime#
- class DateTime(**kwargs)#
- Constructors:
new(tz:GLib.TimeZone, year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> GLib.DateTime or None
new_from_iso8601(text:str, default_tz:GLib.TimeZone=None) -> GLib.DateTime or None
new_from_timeval_local(tv:GLib.TimeVal) -> GLib.DateTime or None
new_from_timeval_utc(tv:GLib.TimeVal) -> GLib.DateTime or None
new_from_unix_local(t:int) -> GLib.DateTime or None
new_from_unix_local_usec(usecs:int) -> GLib.DateTime or None
new_from_unix_utc(t:int) -> GLib.DateTime or None
new_from_unix_utc_usec(usecs:int) -> GLib.DateTime or None
new_local(year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> GLib.DateTime or None
new_now(tz:GLib.TimeZone) -> GLib.DateTime or None
new_now_local() -> GLib.DateTime or None
new_now_utc() -> GLib.DateTime or None
new_utc(year:int, month:int, day:int, hour:int, minute:int, seconds:float) -> GLib.DateTime or None
Constructors#
- class DateTime
- classmethod new(tz: TimeZone, year: int, month: int, day: int, hour: int, minute: int, seconds: float) DateTime | None #
- Parameters:
tz
year
month
day
hour
minute
seconds
- classmethod new_from_iso8601(text: str, default_tz: TimeZone | None = None) DateTime | None #
- Parameters:
text
default_tz