Skip to main content
Version: 0.9.0

tabsdata.tableframe.functions.datetime

TdExprDateTimeNameSpace
TdExprDateTimeNameSpace.add_business_days
TdExprDateTimeNameSpace.base_utc_offset
TdExprDateTimeNameSpace.cast_time_unit
TdExprDateTimeNameSpace.century
TdExprDateTimeNameSpace.combine
TdExprDateTimeNameSpace.convert_time_zone
TdExprDateTimeNameSpace.date
TdExprDateTimeNameSpace.datetime
TdExprDateTimeNameSpace.day
TdExprDateTimeNameSpace.dst_offset
TdExprDateTimeNameSpace.epoch
TdExprDateTimeNameSpace.hour
TdExprDateTimeNameSpace.is_leap_year
TdExprDateTimeNameSpace.iso_year
TdExprDateTimeNameSpace.microsecond
TdExprDateTimeNameSpace.millennium
TdExprDateTimeNameSpace.millisecond
TdExprDateTimeNameSpace.minute
TdExprDateTimeNameSpace.month
TdExprDateTimeNameSpace.month_end
TdExprDateTimeNameSpace.month_start
TdExprDateTimeNameSpace.nanosecond
TdExprDateTimeNameSpace.offset_by
TdExprDateTimeNameSpace.ordinal_day
TdExprDateTimeNameSpace.quarter
TdExprDateTimeNameSpace.replace
TdExprDateTimeNameSpace.replace_time_zone
TdExprDateTimeNameSpace.second
TdExprDateTimeNameSpace.strftime
TdExprDateTimeNameSpace.time
TdExprDateTimeNameSpace.timestamp
TdExprDateTimeNameSpace.to_string
TdExprDateTimeNameSpace.total_days
TdExprDateTimeNameSpace.total_hours
TdExprDateTimeNameSpace.total_microseconds
TdExprDateTimeNameSpace.total_milliseconds
TdExprDateTimeNameSpace.total_minutes
TdExprDateTimeNameSpace.total_nanoseconds
TdExprDateTimeNameSpace.total_seconds
TdExprDateTimeNameSpace.truncate
TdExprDateTimeNameSpace.week
TdExprDateTimeNameSpace.weekday
TdExprDateTimeNameSpace.with_time_unit
TdExprDateTimeNameSpace.year

TdExprDateTimeNameSpace

class TdExprDateTimeNameSpace(expr: ExprDateTimeNameSpace)

add_business_days
def add_business_days(
n: int | IntoTdExpr,
week_mask: Iterable[bool] = (True, True, True, True, True, False, False),
holidays: Iterable[date] = (),
roll: Roll = 'raise',
) -> TdExpr

base_utc_offset
def base_utc_offset() -> TdExpr

cast_time_unit
def cast_time_unit(time_unit: TimeUnit) -> TdExpr

century
def century() -> TdExpr

combine
def combine(time: time | TdExpr, time_unit: TimeUnit = 'us') -> TdExpr

convert_time_zone
def convert_time_zone(time_zone: str) -> TdExpr

date
def date() -> TdExpr

datetime
def datetime() -> TdExpr

day
def day() -> TdExpr

dst_offset
def dst_offset() -> TdExpr

epoch
def epoch(time_unit: EpochTimeUnit = 'us') -> TdExpr

hour
def hour() -> TdExpr

is_leap_year
def is_leap_year() -> TdExpr

iso_year
def iso_year() -> TdExpr

microsecond
def microsecond() -> TdExpr

millennium
def millennium() -> TdExpr

millisecond
def millisecond() -> TdExpr

minute
def minute() -> TdExpr

month
def month() -> TdExpr

month_end
def month_end() -> TdExpr

month_start
def month_start() -> TdExpr

nanosecond
def nanosecond() -> TdExpr

offset_by
def offset_by(by: str | TdExpr) -> TdExpr

ordinal_day
def ordinal_day() -> TdExpr

quarter
def quarter() -> TdExpr

replace
def replace(
year: int | IntoTdExpr | None = None,
month: int | IntoTdExpr | None = None,
day: int | IntoTdExpr | None = None,
hour: int | IntoTdExpr | None = None,
minute: int | IntoTdExpr | None = None,
second: int | IntoTdExpr | None = None,
microsecond: int | IntoTdExpr | None = None,
ambiguous: Ambiguous | TdExpr = 'raise',
) -> TdExpr

replace_time_zone
def replace_time_zone(
time_zone: str | None,
ambiguous: Ambiguous | TdExpr = 'raise',
non_existent: NonExistent = 'raise',
) -> TdExpr

second
def second(fractional: bool = False) -> TdExpr

strftime
def strftime(fmt: str) -> TdExpr

time
def time() -> TdExpr

timestamp
def timestamp(time_unit: TimeUnit = 'us') -> TdExpr

to_string
def to_string(fmt: str | None = None) -> TdExpr

total_days
def total_days() -> TdExpr

total_hours
def total_hours() -> TdExpr

total_microseconds
def total_microseconds() -> TdExpr

total_milliseconds
def total_milliseconds() -> TdExpr

total_minutes
def total_minutes() -> TdExpr

total_nanoseconds
def total_nanoseconds() -> TdExpr

total_seconds
def total_seconds() -> TdExpr

truncate
def truncate(every: str | timedelta | TdExpr) -> TdExpr

week
def week() -> TdExpr

weekday
def weekday() -> TdExpr

with_time_unit
def with_time_unit(time_unit: TimeUnit) -> TdExpr

year
def year() -> TdExpr