1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibJS: Implement the LocalTime, UTC, and TimeWithinDay AOs

This commit is contained in:
Timothy Flynn 2022-01-14 13:10:07 -05:00 committed by Linus Groh
parent 5f5bcd549e
commit d93713b874
2 changed files with 24 additions and 0 deletions

View file

@ -105,7 +105,10 @@ 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 local_time(double time);
double utc_time(double time);
double day(double);
double time_within_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);
Value make_date(Value day, Value time);