[package]
name = "polars-time"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "Time related code for the Polars DataFrame library"
[dependencies]
arrow = { workspace = true, features = ["compute", "temporal"] }
polars-core = { workspace = true, features = ["dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-error = { workspace = true }
polars-ops = { workspace = true }
polars-utils = { workspace = true }
atoi = { workspace = true }
bytemuck = { workspace = true }
chrono = { workspace = true }
chrono-tz = { workspace = true, optional = true }
now = { version = "0.1" }
once_cell = { workspace = true }
regex = { workspace = true }
serde = { workspace = true, optional = true }
strum_macros = { workspace = true }
[dev-dependencies]
polars-ops = { workspace = true, features = ["abs"] }
[features]
dtype-date = ["polars-core/dtype-date", "temporal"]
dtype-datetime = ["polars-core/dtype-datetime", "temporal"]
dtype-time = ["polars-core/dtype-time", "temporal"]
dtype-duration = ["polars-core/dtype-duration", "temporal"]
month_start = []
month_end = ["month_start"]
offset_by = []
rolling_window = ["polars-core/rolling_window"]
rolling_window_by = ["polars-core/rolling_window_by", "dtype-duration"]
fmt = ["polars-core/fmt"]
serde = ["dep:serde", "polars-utils/serde"]
temporal = ["polars-core/temporal"]
timezones = ["chrono-tz", "dtype-datetime", "polars-core/timezones", "arrow/timezones", "polars-ops/timezones"]
test = ["dtype-date", "dtype-datetime", "polars-core/fmt"]
default = []