datetime
Helper methods for working with date/time representations.
date_str_to_days(date_str)
date_to_days(date_val)
datetime_to_micros(dt)
Convert a datetime to microseconds from 1970-01-01T00:00:00.000000.
Source code in pyiceberg/utils/datetime.py
datetime_to_millis(dt)
Convert a datetime to milliseconds from 1970-01-01T00:00:00.000000.
Source code in pyiceberg/utils/datetime.py
days_to_date(days)
micros_to_days(timestamp)
micros_to_hours(micros)
micros_to_time(micros)
Convert a timestamp in microseconds to a time.
Source code in pyiceberg/utils/datetime.py
micros_to_timestamp(micros)
micros_to_timestamptz(micros)
millis_to_datetime(millis)
time_str_to_micros(time_str)
time_to_micros(t)
timestamp_to_micros(timestamp_str)
Convert an ISO-9601 formatted timestamp without zone to microseconds from 1970-01-01T00:00:00.000000.
Source code in pyiceberg/utils/datetime.py
timestamptz_to_micros(timestamptz_str)
Convert an ISO-8601 formatted timestamp with zone to microseconds from 1970-01-01T00:00:00.000000+00:00.