Timex.Timezone

Contains all the logic around conversion, manipulation, and comparison of time zones.

Summary

convert(date, tz)

Convert a date to the given timezone

diff(date, destination)

Determine what offset is required to convert a date into a target timezone

get(tz)

Get the TimezoneInfo object corresponding to the given name

local()

Get’s the current local timezone configuration. You can provide a reference date to get the local timezone for a specific date, but the operation will not be cached lik getting the local timezone for the current date

local(date)

Functions

convert(date, tz)

Specs:

Convert a date to the given timezone.

diff(date, destination)

Specs:

Determine what offset is required to convert a date into a target timezone

get(tz)

Get the TimezoneInfo object corresponding to the given name.

local()

Get’s the current local timezone configuration. You can provide a reference date to get the local timezone for a specific date, but the operation will not be cached lik getting the local timezone for the current date

local(date)