LibJS: Implement Temporal.Now.plainDate()

...and ten required AOs we didn't have yet:

- BalanceISODate
- BalanceISODateTime
- BalanceISOYearMonth
- BalanceTime
- BuiltinTimeZoneGetPlainDateTimeFor
- GetISOPartsFromEpoch
- GetOffsetNanosecondsFor
- ParseTemporalTimeZone
- SystemDateTime
- ToTemporalTimeZone
This commit is contained in:
Linus Groh 2021-07-27 00:21:16 +01:00
commit c303bbde54
Notes: sideshowbarker 2024-07-18 08:01:57 +09:00
18 changed files with 507 additions and 1 deletions

View file

@ -10,6 +10,17 @@
namespace JS::Temporal {
struct DaysAndTime {
i32 days;
u8 hour;
u8 minute;
u8 second;
u16 millisecond;
u16 microsecond;
u16 nanosecond;
};
bool is_valid_time(u8 hour, u8 minute, u8 second, u16 millisecond, u16 microsecond, u16 nanosecond);
DaysAndTime balance_time(i64 hour, i64 minute, i64 second, i64 millisecond, i64 microsecond, i64 nanosecond);
}