Skip to content

Implement all functionality needed by temporal_rs for zoneinfo64 #6792

@Manishearth

Description

@Manishearth

Filing this issue to track the work to make zoneinfo64 usable by temporal_rs.

temporal_rs does all timezone computation through one trait, [TimeZoneProvider]. It does normalization and canonicalization, which is out of scope for zoneinfo64, but the rest is important here.

It has three main endpoints:

  • get_named_tz_epoch_nanoseconds: getting the potential epoch nanoseconds corresponding to a local datetime in a given timezone (this can have multiple results if it's during a transition)
  • get_named_tz_offset_nanoseconds: getting the offset for a given epoch nanoseconds value.
  • get_named_tz_transition: getting the next/previous timezone transition from a given epoch nanoseconds, if any

(These APIs likely should be renamed, but they are what they are right now)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions