summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-07-11 23:49:05 +0300
committerLinus Groh <mail@linusgroh.de>2021-07-12 19:05:17 +0100
commit84b028bd71bee672421ba86766ec954434ce4431 (patch)
tree875f52475e6ad86860417889158a4c5ea8346cef /Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
parent75d1ffea005a1677faa89d6e50e7b9de7817a4f8 (diff)
downloadserenity-84b028bd71bee672421ba86766ec954434ce4431.zip
LibJS: Add Temporal.Instant.prototype.round()
As well as the required Abstract Operations.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Instant.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Instant.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
index 631cea06ef..e34295946a 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h
@@ -41,5 +41,6 @@ Instant* create_temporal_instant(GlobalObject&, BigInt& nanoseconds, FunctionObj
Instant* to_temporal_instant(GlobalObject&, Value item);
BigInt* parse_temporal_instant(GlobalObject&, String const& iso_string);
i32 compare_epoch_nanoseconds(BigInt const&, BigInt const&);
+BigInt* round_temporal_instant(GlobalObject&, BigInt const& nanoseconds, u64 increment, String const& unit, String const& rounding_mode);
}