Module zut.time

Parse and convert dates, times and time zones.

Functions

get_duration_str(duration)

get_local_tz()

is_iso_datetime(value)

Recognize if the given string value may be parsed as ISO datetime.

make_aware(value[, tz])

Make a naive datetime aware in the given timezone.

make_naive(value[, tz])

Make an aware datetime naive in the given timezone.

now_aware([tz, no_microseconds])

Get the current aware datetime in the given timezone.

now_naive([tz, no_microseconds])

Get the current naive datetime in the given timezone.

parse_date(-> ~datetime.date)

Convert a literal to a date.

parse_datetime(-> ~datetime.datetime)

parse_month(-> int)

parse_tzinfo(-> ~datetime.tzinfo)