iso8601cal.cpp 718 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // © 2022 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. #include "unicode/utypes.h"
  4. #if !UCONFIG_NO_FORMATTING
  5. #include "iso8601cal.h"
  6. #include "unicode/gregocal.h"
  7. U_NAMESPACE_BEGIN
  8. UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ISO8601Calendar)
  9. ISO8601Calendar::ISO8601Calendar(const Locale& aLocale, UErrorCode& success)
  10. : GregorianCalendar(aLocale, success)
  11. {
  12. setFirstDayOfWeek(UCAL_MONDAY);
  13. setMinimalDaysInFirstWeek(4);
  14. }
  15. ISO8601Calendar::~ISO8601Calendar()
  16. {
  17. }
  18. ISO8601Calendar* ISO8601Calendar::clone() const
  19. {
  20. return new ISO8601Calendar(*this);
  21. }
  22. const char *ISO8601Calendar::getType() const
  23. {
  24. return "iso8601";
  25. }
  26. U_NAMESPACE_END
  27. #endif