Skip to content

featurebyte.TimeZoneColumn

class TimeZoneColumn(
*,
column_name: str,
type: Literal["offset", "timezone"]
)

Description

This class is used to specify how timezone data is stored within a dataset, either as a timezone offset or as a timezone name.

Parameters

  • column_name: str
    The name of the column that contains the timezone information.

  • type: Literal["offset", "timezone"]
    The type of timezone information stored in the column.
    - "offset":
    Represents timezone as an offset from UTC (e.g., +05:30).
    - "timezone":
    Represents timezone as a timezone name (e.g., "America/New_York").
    The time zones are defined by the International Time Zone Database
    (commonly known as the IANA Time Zone Database or tz database).

See Also

  • TimestampSchema: Schema for a timestamp column that can include timezone information.