• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
5 #if !UCONFIG_NO_FORMATTING
6 
7 #include "iso8601cal.h"
8 #include "unicode/gregocal.h"
9 
10 U_NAMESPACE_BEGIN
11 
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ISO8601Calendar)12 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ISO8601Calendar)
13 
14 ISO8601Calendar::ISO8601Calendar(const Locale& aLocale, UErrorCode& success)
15 :   GregorianCalendar(aLocale, success)
16 {
17     setFirstDayOfWeek(UCAL_MONDAY);
18     setMinimalDaysInFirstWeek(4);
19 }
20 
~ISO8601Calendar()21 ISO8601Calendar::~ISO8601Calendar()
22 {
23 }
24 
clone() const25 ISO8601Calendar* ISO8601Calendar::clone() const
26 {
27     return new ISO8601Calendar(*this);
28 }
29 
getType() const30 const char *ISO8601Calendar::getType() const
31 {
32     return "iso8601";
33 }
34 
35 U_NAMESPACE_END
36 
37 #endif
38