diff options
author | Linus Groh <mail@linusgroh.de> | 2021-08-30 20:44:05 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-30 22:33:10 +0100 |
commit | e3254bf4c5df98d96d962d21bd553f1d6b5486ec (patch) | |
tree | 0dbd30233703292ca790acc9580c727f9bf5588d /Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h | |
parent | f492e98f19c3a70b9204702181d20c46ed90896b (diff) | |
download | serenity-e3254bf4c5df98d96d962d21bd553f1d6b5486ec.zip |
LibJS: Implement Temporal.Calendar.prototype.dateAdd()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h index 03497bc29b..ec196704a4 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h @@ -47,6 +47,7 @@ bool is_valid_iso_date(i32 year, u8 month, u8 day); ISODate balance_iso_date(double year, double month, double day); String pad_iso_year(i32 y); Optional<String> temporal_date_to_string(GlobalObject&, PlainDate&, StringView show_calendar); +Optional<ISODate> add_iso_date(GlobalObject&, i32 year, u8 month, u8 day, double years, double months, double weeks, double days, String const& overflow); i8 compare_iso_date(i32 year1, u8 month1, u8 day1, i32 year2, u8 month2, u8 day2); } |