mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Implement string->number for type=datetime-local input elements
This commit is contained in:
parent
90b303215e
commit
4def3fe567
Notes:
github-actions[bot]
2025-03-10 10:35:00 +00:00
Author: https://github.com/sideshowbarker
Commit: 4def3fe567
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3849
Reviewed-by: https://github.com/tcl3
6 changed files with 148 additions and 17 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue