1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:27:35 +00:00

LibJS: Implement ToTemporalYearMonth AO

This commit is contained in:
Luke Wilde 2021-09-09 06:27:55 +01:00 committed by Linus Groh
parent d3fcf5a570
commit ff0b01a505
4 changed files with 101 additions and 0 deletions

View file

@ -39,6 +39,7 @@ struct ISOYearMonth {
u8 reference_iso_day;
};
PlainYearMonth* to_temporal_year_month(GlobalObject& global_object, Value item, Object* options = nullptr);
Optional<ISOYearMonth> regulate_iso_year_month(GlobalObject&, double year, double month, StringView overflow);
bool is_valid_iso_month(u8 month);
bool iso_year_month_within_limits(i32 year, u8 month);