diff options
author | Linus Groh <mail@linusgroh.de> | 2021-08-16 00:35:05 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-16 14:10:41 +0100 |
commit | ed9d37bd4049c4c178912d321183a8b146d5410f (patch) | |
tree | 76d8fecfd9119f3a0c460458b482733f5f1de798 /Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h | |
parent | c1c12497b56edbdbd02cb3f687a676f1c6a39cac (diff) | |
download | serenity-ed9d37bd4049c4c178912d321183a8b146d5410f.zip |
LibJS: Implement Temporal.Calendar.prototype.yearMonthFromFields()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h index 653d37b175..162144f85c 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h @@ -9,6 +9,7 @@ #include <LibJS/Runtime/Object.h> #include <LibJS/Runtime/Temporal/PlainDate.h> +#include <LibJS/Runtime/Temporal/PlainYearMonth.h> #include <LibJS/Runtime/Value.h> namespace JS::Temporal { @@ -59,6 +60,7 @@ u8 to_iso_week_of_year(i32 year, u8 month, u8 day); String build_iso_month_code(u8 month); double resolve_iso_month(GlobalObject&, Object& fields); Optional<ISODate> iso_date_from_fields(GlobalObject&, Object& fields, Object& options); +Optional<ISOYearMonth> iso_year_month_from_fields(GlobalObject&, Object& fields, Object& options); i32 iso_year(Object& temporal_object); u8 iso_month(Object& temporal_object); String iso_month_code(Object& temporal_object); |