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

Learn about possible future .NET equivalent to LocalDateTime #866

Closed
justingrant opened this issue Sep 1, 2020 · 8 comments
Closed

Learn about possible future .NET equivalent to LocalDateTime #866

justingrant opened this issue Sep 1, 2020 · 8 comments
Labels

Comments

@justingrant
Copy link
Collaborator

@pipobscure mentioned today that some folks at Microsoft may be working on a LocalDateTime-like type for .NET.

Given that we're both working on similar use cases in similar timeframes, it may make sense to align with them, especially on string and JSON interop formats.

Another possible area for cooperation could be future standardization of our time zone and calendar extensions to the ISO string format.

@pipobscure, @rbuckton - do you know who's working on this at Microsoft?

@pipobscure
Copy link
Collaborator

pipobscure commented Sep 1, 2020 via email

@rbuckton
Copy link

rbuckton commented Sep 1, 2020

I can ask around, but I'm currently unaware of any plans as such. As far as I'm aware, .NET already has the following (and has had for a number of years):

  • DateTime - A representation of the date and time in the local time zone
  • TimeSpan - A fixed duration, can also represent the time of day.
  • TimeZone/TimeZoneInfo - Represents time zone information from the system and the creation of custom time zones.
  • DateTimeOffset - A date and time fixed to a specific offset from UTC.
  • Calendar - A representation of various calendar systems, used in conjunction with DateTime and DateTimeOffset.

@ptomato
Copy link
Collaborator

ptomato commented Sep 17, 2020

@mj1856 Do you have any information on this?

@mattjohnsonpint
Copy link
Collaborator

AFAIK, nothing is currently planned in .NET itself. I've had some discussions with @tarekgh (the lead on the .NET team in this area) but not much is happening with the date/time API in .NET.

Noda Time has a ZonedDateTime, but that's a library not a built-in.

Separately, I did a prototype for Date and Time types, which are still here, but no plan to move forward with them yet.

@ptomato
Copy link
Collaborator

ptomato commented Jan 14, 2021

From the sound of it, there are no plans currently underway, so closing this.

@ptomato ptomato closed this as completed Jan 14, 2021
@mattjohnsonpint
Copy link
Collaborator

Actually there is work going on in this area, being tracked here:

dotnet/runtime#45318

@ptomato
Copy link
Collaborator

ptomato commented Feb 18, 2021

It seems discussion has moved to dotnet/runtime#36617

This is a tracking issue. We should see if they are interested in the IETF draft for extending RFC 3339.

@ptomato ptomato added the meta label Feb 18, 2021
@ptomato
Copy link
Collaborator

ptomato commented Jan 2, 2023

I added this to js-temporal/temporal-developer-education#2, the cross-language comparison issue in the developer-education task list.

@ptomato ptomato closed this as completed Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants