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

LibJS: Implement Temporal.Calendar.prototype.dayOfYear

This commit is contained in:
Idan Horowitz 2021-07-23 17:58:44 +03:00 committed by Linus Groh
parent bcbfd5b280
commit c0e7761758
6 changed files with 52 additions and 0 deletions

View file

@ -47,6 +47,7 @@ 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);
u16 to_iso_day_of_year(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);