summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-01-26 15:54:09 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-26 20:20:54 +0000
commit453d3063f5b484d46dd6e704b296bb6191ad8f13 (patch)
tree4cd5f839ee5bf4944916b1f6bc2c7b21b7921595 /Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h
parent2aa4fcc318d34265522a32661377575700fc64d9 (diff)
downloadserenity-453d3063f5b484d46dd6e704b296bb6191ad8f13.zip
LibJS: Port pad_iso_year() to String
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h
index a3ad5773bd..1a30e6d48e 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
- * Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
+ * Copyright (c) 2021-2023, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -52,7 +52,7 @@ DateDurationRecord difference_iso_date(VM&, i32 year1, u8 month1, u8 day1, i32 y
ThrowCompletionOr<ISODateRecord> regulate_iso_date(VM&, double year, double month, double day, StringView overflow);
bool is_valid_iso_date(i32 year, u8 month, u8 day);
ISODateRecord balance_iso_date(double year, double month, double day);
-DeprecatedString pad_iso_year(i32 y);
+ThrowCompletionOr<String> pad_iso_year(VM&, i32 y);
ThrowCompletionOr<DeprecatedString> temporal_date_to_string(VM&, PlainDate&, StringView show_calendar);
ThrowCompletionOr<ISODateRecord> add_iso_date(VM&, i32 year, u8 month, u8 day, double years, double months, double weeks, double days, StringView overflow);
i8 compare_iso_date(i32 year1, u8 month1, u8 day1, i32 year2, u8 month2, u8 day2);