TimeZone#

class TimeZone(**kwargs)#
Constructors:

new(identifier:str=None) -> GLib.TimeZone
new_identifier(identifier:str=None) -> GLib.TimeZone or None
new_local() -> GLib.TimeZone
new_offset(seconds:int) -> GLib.TimeZone
new_utc() -> GLib.TimeZone

Constructors#

class TimeZone
classmethod new(identifier: str | None = None) TimeZone#
Parameters:

identifier

classmethod new_identifier(identifier: str | None = None) TimeZone | None#
Parameters:

identifier

classmethod new_local() TimeZone#
classmethod new_offset(seconds: int) TimeZone#
Parameters:

seconds

classmethod new_utc() TimeZone#

Methods#

class TimeZone
adjust_time(type: TimeType) tuple[int, int]#
Parameters:

type

find_interval(type: TimeType, time_: int) int#
Parameters:
  • type

  • time

get_abbreviation(interval: int) str#
Parameters:

interval

get_identifier() str#
get_offset(interval: int) int#
Parameters:

interval

is_dst(interval: int) bool#
Parameters:

interval