Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GetTimeZoneTransition method for ZonedDateTime #152

Open
nekevss opened this issue Jan 7, 2025 · 0 comments
Open

Implement GetTimeZoneTransition method for ZonedDateTime #152

nekevss opened this issue Jan 7, 2025 · 0 comments
Labels
C-enhancement New feature or request

Comments

@nekevss
Copy link
Member

nekevss commented Jan 7, 2025

Related to ongoing work for #13.

The method GetTimeZoneTransition needs to be implemented for ZonedDateTime.

This may involve extending the TzProvider trait and implementing that extension on FsTzdbProvider.

Initial thought on how the implementation may look would be to add the method like below:

trait TzProvider {
  // ...
  // Existing trait methods
  
  fn get_timezone_transition(&self, direction: TransitionDirection) -> EpochNanoseconds;
}
@nekevss nekevss added the C-enhancement New feature or request label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant