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

LibJS: Implement Temporal.Calendar.prototype.dayOfWeek

This commit is contained in:
Idan Horowitz 2021-07-23 17:46:20 +03:00 committed by Linus Groh
parent 59dc0e8421
commit 339b0a17e8
6 changed files with 57 additions and 0 deletions

View file

@ -45,6 +45,7 @@ PlainDate* date_from_fields(GlobalObject&, Object& calendar, Object& fields, Obj
bool calendar_equals(GlobalObject&, Object& one, Object& two);
bool is_iso_leap_year(i32 year);
i32 iso_days_in_month(i32 year, i32 month);
u8 to_iso_day_of_week(i32 year, u8 month, u8 day);
String build_iso_month_code(i32 month);
double resolve_iso_month(GlobalObject&, Object& fields);
Optional<TemporalDate> iso_date_from_fields(GlobalObject&, Object& fields, Object& options);