Skip to content

[FEATURE] Displaying timestamps in local time #1

@ft-lakr

Description

@ft-lakr

Is your feature request related to a problem? Please describe.
We have several tables containing Timestamp columns. Currently when we wish to display the tables we use
print(table)
which prints the timestamp column as the time in UTC. However, our local time zone is different from UTC, and it would often be nice to view the Timestamps in our local time zone.

Describe the solution you'd like
If possible, a function for Tables working similar to the current __str__ but which also has an (optional) parameter related to the time zone which will alter the output accordingly, e.g., something like
print(table) # Prints any Timestamp in UTC
table.display(timezone=some_timezone) # Prints the same table, but now with Timestamps in local time
where the some_timezone could be a Python zoneinfo.ZoneInfo variable or similar.

Describe alternatives you've considered
Alternatively, a function taking a float representing the UTC offset would also work fine.

Additional context

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions