Module zut.tz

Parse and convert timezones.

Functions

get_local_tz()

get_tz_key([tz])

is_local_tz(tz)

is_utc_tz(tz)

make_aware(value[, tz])

Make a naive datetime aware in the given timezone (use tz='local' for the system local timezone or tz='utc' for UTC).

make_naive(value[, tz])

Make an aware datetime naive in the given timezone (use tz='local' for the system local timezone or tz='utc' for UTC).

now_aware([tz, no_microseconds])

Get the current aware datetime in the given timezone (use tz='local' for the system local timezone or tz='utc' for UTC).

now_naive([tz, no_microseconds])

Get the current naive datetime in the given timezone (use tz='local' for the system local timezone or tz='utc' for UTC).

parse_tz([tz])