summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Date.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-11 23:27:05 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-12 15:43:12 +0100
commit8987deb9840dbb8bc7311e964918dfba56857275 (patch)
tree6712228bfdb04f0156019c8c0966a61f7e4d5c34 /Userland/Libraries/LibJS/Runtime/Date.h
parentf6786881aabdffd77c82bebdd783ed022c89222b (diff)
downloadserenity-8987deb9840dbb8bc7311e964918dfba56857275.zip
LibJS: Partially implement the LocalTZA AO
Intl.DateTimeFormat will invoke this AO with isUTC=true, so this only implements that branch in LocalTZA.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Date.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Date.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Date.h b/Userland/Libraries/LibJS/Runtime/Date.h
index 33a6502ae9..26a38b083b 100644
--- a/Userland/Libraries/LibJS/Runtime/Date.h
+++ b/Userland/Libraries/LibJS/Runtime/Date.h
@@ -104,6 +104,7 @@ u8 min_from_time(double);
u8 sec_from_time(double);
u16 ms_from_time(double);
u8 week_day(double);
+double local_tza(double time, bool is_utc, Optional<StringView> time_zone_override = {});
double day(double);
Value make_time(GlobalObject& global_object, Value hour, Value min, Value sec, Value ms);
Value make_day(GlobalObject& global_object, Value year, Value month, Value date);