assemblyscript-temporal icon indicating copy to clipboard operation
assemblyscript-temporal copied to clipboard

[Feature] Implement PlainDateTime family of classes

Open willemneal opened this issue 3 years ago • 4 comments

This is a tracking issue for implementing the following classes:

  • [ ] PlainDateTime
    • [ ] PlainDate
      • [ ] PlainMmothDay
      • [ ] PlainYearMonth
    • [ ] PlainTime

willemneal avatar Mar 24 '21 20:03 willemneal

I'd also suggest that both Instant and the complete Duration API are relatively easy starting points for a new contributor

ColinEberhardt avatar Apr 01 '21 13:04 ColinEberhardt

@ashutoshvarma ^

willemneal avatar Apr 01 '21 21:04 willemneal

Yeah, Duration and Instant seems relatively easy, do we need to support Instant.toZonedDateTime also?

Also, I have started on PlainTime and so far add and subtract are done. @ColinEberhardt For tests, do we just port them from https://github.com/tc39/proposal-temporal/tree/main/polyfill/test/PlainTime?

ashutoshvarma avatar Apr 02 '21 20:04 ashutoshvarma

None of the ‘zoned’ types are implemented yet as they require the tricky logic which applies time zone specific offsets based on the IANA time zone database. I’m working on that at the moment!

ColinEberhardt avatar Apr 03 '21 10:04 ColinEberhardt