Dates.h 541 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2023, stelar7 <dudedbz@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <AK/String.h>
  9. namespace Web::HTML {
  10. u32 week_number_of_the_last_day(u64 year);
  11. bool is_valid_week_string(StringView value);
  12. bool is_valid_month_string(StringView value);
  13. bool is_valid_date_string(StringView value);
  14. bool is_valid_local_date_and_time_string(StringView value);
  15. String normalize_local_date_and_time_string(String const& value);
  16. bool is_valid_time_string(StringView value);
  17. }