TzConvert
Base classes
| Name |
Children |
Inherits |
SeriesOp datacook.engine.ops.series A `ColumnOp` that is one call per column, declared like `CallOp`. |
|
|
⋔ Inheritance diagram
graph TD
4003447353["dates.TzConvert"]
2451904138["series.SeriesOp"]
124287307["series.ColumnOp"]
1539482213["base.Op"]
2751680898["builtins.object"]
2451904138 --> 4003447353
124287307 --> 2451904138
1539482213 --> 124287307
2751680898 --> 1539482213
🛈 DocStrings
Bases: SeriesOp
Source code in src/datacook/engine/ops/dates.py
| class TzConvert(series.SeriesOp):
id = "tz_convert"
title = _("Convert time zone")
description = _("Convert date / time values with a time zone to another time zone.")
category = categories.DATETIME
icon = "mdi.earth"
accessor = "dt"
method = "tz_convert"
positional = ("tz",)
class Params(series.ColumnParams):
tz: str | None = Field(
title=N_("Time zone"),
description=N_("Empty: UTC without a time zone."),
examples=["Europe/Berlin", "UTC"],
)
|
:fa-brands-github: Show source on GitHub