LibWeb: Implement string->number for type=datetime-local input elements

This commit is contained in:
sideshowbarker 2025-03-07 23:43:42 +09:00 committed by Tim Ledbetter
commit 4def3fe567
Notes: github-actions[bot] 2025-03-10 10:35:00 +00:00
6 changed files with 148 additions and 17 deletions

View file

@ -40,8 +40,21 @@ struct YearMonthDay {
u32 day;
};
struct HourMinuteSecond {
i32 hour;
i32 minute;
i32 second;
};
struct DateAndTime {
YearMonthDay date;
HourMinuteSecond time;
};
Optional<YearMonthDay> parse_a_date_string(StringView);
Optional<DateAndTime> parse_a_local_date_and_time_string(StringView);
i32 number_of_months_since_unix_epoch(YearAndMonth);
}