Timex.PosixTimezone (timex v3.7.7) View Source
Used when parsing POSIX-TZ timezone rules.
Link to this section Summary
Functions
Obtains a NaiveDateTime representing the end of DST for this zone.
Obtains a NaiveDateTime representing the start of DST for this zone.
Returns a boolean indicating if the datetime provided occurs during DST of the given POSIX timezone.
Returns a Calendar.TimeZoneDatabase compatible map, representing this timezone for the given datetime
Returns a TimezoneInfo struct representing this timezone for the given datetime
Link to this section Types
Specs
Specs
t() :: %Timex.PosixTimezone{
dst_abbr: nil | String.t(),
dst_end: rule_bound(),
dst_offset: integer(),
dst_start: rule_bound(),
name: nil | String.t(),
std_abbr: nil | String.t(),
std_offset: integer()
}
Link to this section Functions
Specs
dst_end(t(), DateTime.t() | NaiveDateTime.t() | Date.t()) :: NaiveDateTime.t() | nil
Obtains a NaiveDateTime representing the end of DST for this zone.
Returns nil if there is no DST period.
Specs
dst_start(t(), DateTime.t() | NaiveDateTime.t() | Date.t()) :: NaiveDateTime.t() | nil
Obtains a NaiveDateTime representing the start of DST for this zone.
Returns nil if there is no DST period.
Specs
is_dst?(t(), DateTime.t() | NaiveDateTime.t() | Date.t()) :: boolean()
Returns a boolean indicating if the datetime provided occurs during DST of the given POSIX timezone.
Returns a Calendar.TimeZoneDatabase compatible map, representing this timezone for the given datetime
Specs
to_timezone_info(t(), DateTime.t() | NaiveDateTime.t() | Date.t()) :: Timex.TimezoneInfo.t()
Returns a TimezoneInfo struct representing this timezone for the given datetime