ICU 75.1 75.1
Loading...
Searching...
No Matches
ucal.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4 *******************************************************************************
5 * Copyright (C) 1996-2015, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 *******************************************************************************
8 */
9
10#ifndef UCAL_H
11#define UCAL_H
12
13#include "unicode/utypes.h"
14#include "unicode/uenum.h"
15#include "unicode/uloc.h"
16
17#if U_SHOW_CPLUSPLUS_API
19#endif // U_SHOW_CPLUSPLUS_API
20
21#if !UCONFIG_NO_FORMATTING
22
166#define UCAL_UNKNOWN_ZONE_ID "Etc/Unknown"
167
172typedef void* UCalendar;
173
195
198
209
215
236
249
264
273
280
296
321
332
343
352
360
368
376
383
390
399
407
415
427
438
444
469
470 /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API,
471 * it is needed for layout of Calendar, DateFormat, and other objects */
472#ifndef U_FORCE_HIDE_DEPRECATED_API
478
479#endif // U_FORCE_HIDE_DEPRECATED_API
480
491
518
521
556
559
569
572
596
599
616U_CAPI UEnumeration* U_EXPORT2
618 const int32_t* rawOffset, UErrorCode* ec);
619
631U_CAPI UEnumeration* U_EXPORT2
633
650U_CAPI UEnumeration* U_EXPORT2
651ucal_openCountryTimeZones(const char* country, UErrorCode* ec);
652
676U_CAPI int32_t U_EXPORT2
677ucal_getDefaultTimeZone(UChar* result, int32_t resultCapacity, UErrorCode* ec);
678
688U_CAPI void U_EXPORT2
690
720U_CAPI int32_t U_EXPORT2
721ucal_getHostTimeZone(UChar *result, int32_t resultCapacity, UErrorCode *ec);
722
739U_CAPI int32_t U_EXPORT2
741
748U_CAPI UDate U_EXPORT2
750
774U_CAPI UCalendar* U_EXPORT2
775ucal_open(const UChar* zoneID,
776 int32_t len,
777 const char* locale,
778 UCalendarType type,
779 UErrorCode* status);
780
787U_CAPI void U_EXPORT2
789
790#if U_SHOW_CPLUSPLUS_API
791
792U_NAMESPACE_BEGIN
793
804
805U_NAMESPACE_END
806
807#endif
808
817U_CAPI UCalendar* U_EXPORT2
819 UErrorCode* status);
820
830U_CAPI void U_EXPORT2
832 const UChar* zoneID,
833 int32_t len,
834 UErrorCode* status);
835
846U_CAPI int32_t U_EXPORT2
848 UChar *result,
849 int32_t resultLength,
850 UErrorCode *status);
851
866
869
883U_CAPI int32_t U_EXPORT2
886 const char* locale,
887 UChar* result,
888 int32_t resultLength,
889 UErrorCode* status);
890
899U_CAPI UBool U_EXPORT2
901 UErrorCode* status );
902
923U_CAPI void U_EXPORT2
925
946U_CAPI UDate U_EXPORT2
948
982
985
1015
1027U_CAPI int32_t U_EXPORT2
1029 UCalendarAttribute attr);
1030
1042U_CAPI void U_EXPORT2
1044 UCalendarAttribute attr,
1045 int32_t newValue);
1046
1056U_CAPI const char* U_EXPORT2
1057ucal_getAvailable(int32_t localeIndex);
1058
1067U_CAPI int32_t U_EXPORT2
1069
1081U_CAPI UDate U_EXPORT2
1083 UErrorCode* status);
1084
1096U_CAPI void U_EXPORT2
1098 UDate dateTime,
1099 UErrorCode* status );
1100
1115U_CAPI void U_EXPORT2
1117 int32_t year,
1118 int32_t month,
1119 int32_t date,
1120 UErrorCode* status);
1121
1139U_CAPI void U_EXPORT2
1141 int32_t year,
1142 int32_t month,
1143 int32_t date,
1144 int32_t hour,
1145 int32_t minute,
1146 int32_t second,
1147 UErrorCode* status);
1148
1158U_CAPI UBool U_EXPORT2
1160 const UCalendar* cal2);
1161
1180U_CAPI void U_EXPORT2
1182 UCalendarDateFields field,
1183 int32_t amount,
1184 UErrorCode* status);
1185
1210U_CAPI void U_EXPORT2
1212 UCalendarDateFields field,
1213 int32_t amount,
1214 UErrorCode* status);
1215
1232U_CAPI int32_t U_EXPORT2
1234 UCalendarDateFields field,
1235 UErrorCode* status );
1236
1252U_CAPI void U_EXPORT2
1254 UCalendarDateFields field,
1255 int32_t value);
1256
1272U_CAPI UBool U_EXPORT2
1274 UCalendarDateFields field);
1275
1290U_CAPI void U_EXPORT2
1292 UCalendarDateFields field);
1293
1304U_CAPI void U_EXPORT2
1306
1325
1328
1343U_CAPI int32_t U_EXPORT2
1345 UCalendarDateFields field,
1346 UCalendarLimitType type,
1347 UErrorCode* status);
1348
1356U_CAPI const char * U_EXPORT2
1358
1365U_CAPI const char * U_EXPORT2
1367
1386U_CAPI int32_t U_EXPORT2
1387ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len,
1388 UChar* result, int32_t resultCapacity, UBool *isSystemID, UErrorCode* status);
1389
1390#ifndef U_HIDE_DRAFT_API
1416U_CAPI int32_t U_EXPORT2
1417ucal_getIanaTimeZoneID(const UChar* id, int32_t len,
1418 UChar* result, int32_t resultCapacity, UErrorCode* status);
1419#endif // U_HIDE_DRAFT_API
1420
1428U_CAPI const char * U_EXPORT2
1429ucal_getType(const UCalendar *cal, UErrorCode* status);
1430
1447U_CAPI UEnumeration* U_EXPORT2
1449 const char* locale,
1450 UBool commonlyUsed,
1451 UErrorCode* status);
1452
1453
1481
1484
1504
1520U_CAPI int32_t U_EXPORT2
1522
1533U_CAPI UBool U_EXPORT2
1534ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status);
1535
1560U_CAPI int32_t U_EXPORT2
1562 UDate target,
1563 UCalendarDateFields field,
1564 UErrorCode* status);
1565
1596
1614U_CAPI UBool U_EXPORT2
1616 UDate* transition, UErrorCode* status);
1617
1642U_CAPI int32_t U_EXPORT2
1643ucal_getWindowsTimeZoneID(const UChar* id, int32_t len,
1644 UChar* winid, int32_t winidCapacity, UErrorCode* status);
1645
1674U_CAPI int32_t U_EXPORT2
1675ucal_getTimeZoneIDForWindowsID(const UChar* winid, int32_t len, const char* region,
1676 UChar* id, int32_t idCapacity, UErrorCode* status);
1677
1763U_CAPI void U_EXPORT2
1765 const UCalendar* cal,
1766 UTimeZoneLocalOption nonExistingTimeOpt,
1767 UTimeZoneLocalOption duplicatedTimeOpt,
1768 int32_t* rawOffset, int32_t* dstOffset, UErrorCode* status);
1769
1770#endif /* #if !UCONFIG_NO_FORMATTING */
1771
1772#endif
"Smart pointer" class, closes a UCalendar via ucal_close().
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
UCalendarDateFields
Possible fields in a UCalendar.
Definition ucal.h:202
@ UCAL_HOUR_OF_DAY
Field number indicating the hour of the day.
Definition ucal.h:351
@ UCAL_EXTENDED_YEAR
Year of this calendar system, encompassing all supra-year fields.
Definition ucal.h:414
@ UCAL_ERA
Field number indicating the era, e.g., AD or BC in the Gregorian (Julian) calendar.
Definition ucal.h:208
@ UCAL_ORDINAL_MONTH
Field number indicating the month.
Definition ucal.h:468
@ UCAL_WEEK_OF_MONTH
Field number indicating the week number within the current month.
Definition ucal.h:263
@ UCAL_YEAR
Field number indicating the year.
Definition ucal.h:214
@ UCAL_DAY_OF_YEAR
Field number indicating the day number within the current year.
Definition ucal.h:279
@ UCAL_YEAR_WOY
Field number indicating the extended year corresponding to the UCAL_WEEK_OF_YEAR field.
Definition ucal.h:398
@ UCAL_MINUTE
Field number indicating the minute within the hour.
Definition ucal.h:359
@ UCAL_JULIAN_DAY
Field number indicating the modified Julian day number.
Definition ucal.h:426
@ UCAL_DATE
Field number indicating the day of the month.
Definition ucal.h:272
@ UCAL_SECOND
Field number indicating the second within the minute.
Definition ucal.h:367
@ UCAL_DAY_OF_WEEK_IN_MONTH
Field number indicating the ordinal number of the day of the week within the current month.
Definition ucal.h:320
@ UCAL_MONTH
Field number indicating the month.
Definition ucal.h:235
@ UCAL_ZONE_OFFSET
Field number indicating the raw offset from GMT in milliseconds.
Definition ucal.h:382
@ UCAL_WEEK_OF_YEAR
Field number indicating the week number within the current year.
Definition ucal.h:248
@ UCAL_MILLISECOND
Field number indicating the millisecond within the second.
Definition ucal.h:375
@ UCAL_HOUR
Field number indicating the hour of the morning or afternoon.
Definition ucal.h:342
@ UCAL_DAY_OF_MONTH
Field number indicating the day of the month.
Definition ucal.h:489
@ UCAL_DAY_OF_WEEK
Field number indicating the day of the week.
Definition ucal.h:295
@ UCAL_AM_PM
Field number indicating whether the HOUR is before or after noon.
Definition ucal.h:331
@ UCAL_FIELD_COUNT
One more than the highest normal UCalendarDateFields value.
Definition ucal.h:477
@ UCAL_IS_LEAP_MONTH
Whether or not the current month is a leap month (0 or 1).
Definition ucal.h:443
@ UCAL_DST_OFFSET
Field number indicating the daylight savings offset in milliseconds.
Definition ucal.h:389
@ UCAL_MILLISECONDS_IN_DAY
Ranges from 0 to 23:59:59.999 (regardless of DST).
Definition ucal.h:437
@ UCAL_DOW_LOCAL
Field number indicating the localized day of week.
Definition ucal.h:406
U_CAPI int32_t ucal_getTimeZoneDisplayName(const UCalendar *cal, UCalendarDisplayNameType type, const char *locale, UChar *result, int32_t resultLength, UErrorCode *status)
Get the display name for a UCalendar's TimeZone.
UTimeZoneLocalOption
Options used by ucal_getTimeZoneOffsetFromLocal and BasicTimeZone::getOffsetFromLocal() to specify ho...
Definition ucal.h:1684
@ UCAL_TZ_LOCAL_DAYLIGHT_LATTER
An input time is interpreted as daylight saving time when local time is switched to/from standard tim...
Definition ucal.h:1732
@ UCAL_TZ_LOCAL_STANDARD_LATTER
An input time is interpreted as standard time when local time is switched to/from daylight saving tim...
Definition ucal.h:1714
@ UCAL_TZ_LOCAL_STANDARD_FORMER
An input time is interpreted as standard time when local time is switched to/from daylight saving tim...
Definition ucal.h:1705
@ UCAL_TZ_LOCAL_DAYLIGHT_FORMER
An input time is interpreted as daylight saving time when local time is switched to/from standard tim...
Definition ucal.h:1723
@ UCAL_TZ_LOCAL_LATTER
An input time is always interpreted as local time after a time zone transition.
Definition ucal.h:1696
@ UCAL_TZ_LOCAL_FORMER
An input time is always interpreted as local time before a time zone transition.
Definition ucal.h:1690
U_CAPI UDate ucal_getGregorianChange(const UCalendar *cal, UErrorCode *pErrorCode)
Gets the Gregorian Calendar change date.
USystemTimeZoneType
System time zone type constants used by filtering zones in ucal_openTimeZoneIDEnumeration.
Definition ucal.h:579
@ UCAL_ZONE_TYPE_CANONICAL
Canonical system zones.
Definition ucal.h:589
@ UCAL_ZONE_TYPE_ANY
Any system zones.
Definition ucal.h:584
@ UCAL_ZONE_TYPE_CANONICAL_LOCATION
Canonical system zones associated with actual locations.
Definition ucal.h:594
U_CAPI int32_t ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status)
Returns the time during the day at which the weekend begins or ends in this calendar system.
UCalendarAttribute
Types of UCalendar attributes.
Definition ucal.h:953
@ UCAL_MINIMAL_DAYS_IN_FIRST_WEEK
Minimum number of days in first week.
Definition ucal.h:968
@ UCAL_REPEATED_WALL_TIME
The behavior for handling wall time repeating multiple times at negative time zone offset transitions...
Definition ucal.h:974
@ UCAL_FIRST_DAY_OF_WEEK
First day of week.
Definition ucal.h:963
@ UCAL_SKIPPED_WALL_TIME
The behavior for handling skipped wall time at positive time zone offset transitions.
Definition ucal.h:980
@ UCAL_LENIENT
Lenient parsing.
Definition ucal.h:958
U_CAPI void ucal_setDate(UCalendar *cal, int32_t year, int32_t month, int32_t date, UErrorCode *status)
Set a UCalendar's current date.
U_CAPI void ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode)
Sets the GregorianCalendar change date.
U_CAPI UEnumeration * ucal_getKeywordValuesForLocale(const char *key, const char *locale, UBool commonlyUsed, UErrorCode *status)
Given a key and a locale, returns an array of string values in a preferred order that would make a di...
U_CAPI const char * ucal_getTZDataVersion(UErrorCode *status)
Returns the timezone data version currently used by ICU.
U_CAPI UBool ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status)
Returns true if the given UDate is in the weekend in this calendar system.
U_CAPI void ucal_close(UCalendar *cal)
Close a UCalendar.
UCalendarWallTimeOption
Options for handling ambiguous wall time at time zone offset transitions.
Definition ucal.h:991
@ UCAL_WALLTIME_NEXT_VALID
An ambiguous wall time to be interpreted as the next valid wall time.
Definition ucal.h:1011
@ UCAL_WALLTIME_LAST
An ambiguous wall time to be interpreted as the latest.
Definition ucal.h:998
@ UCAL_WALLTIME_FIRST
An ambiguous wall time to be interpreted as the earliest.
Definition ucal.h:1005
U_CAPI void ucal_clearField(UCalendar *cal, UCalendarDateFields field)
Clear a field in a UCalendar.
U_CAPI const char * ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode *status)
Get the locale for this calendar object.
U_CAPI int32_t ucal_getLimit(const UCalendar *cal, UCalendarDateFields field, UCalendarLimitType type, UErrorCode *status)
Determine a limit for a field in a UCalendar.
U_CAPI int32_t ucal_getIanaTimeZoneID(const UChar *id, int32_t len, UChar *result, int32_t resultCapacity, UErrorCode *status)
Returns the preferred time zone ID in the IANA time zone database for the given time zone ID.
U_CAPI UBool ucal_inDaylightTime(const UCalendar *cal, UErrorCode *status)
Determine if a UCalendar is currently in daylight savings time.
UCalendarWeekdayType
Weekday types, as returned by ucal_getDayOfWeekType().
Definition ucal.h:1457
@ UCAL_WEEKDAY
Designates a full weekday (no part of the day is included in the weekend).
Definition ucal.h:1462
@ UCAL_WEEKEND_CEASE
Designates a day that starts as the weekend and transitions to a weekday.
Definition ucal.h:1479
@ UCAL_WEEKEND
Designates a full weekend day (the entire day is included in the weekend).
Definition ucal.h:1467
@ UCAL_WEEKEND_ONSET
Designates a day that starts as a weekday and transitions to the weekend.
Definition ucal.h:1473
U_CAPI UCalendarWeekdayType ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status)
Returns whether the given day of the week is a weekday, a weekend day, or a day that transitions from...
U_CAPI void ucal_set(UCalendar *cal, UCalendarDateFields field, int32_t value)
Set the value of a field in a UCalendar.
UCalendarDaysOfWeek
Useful constant for days of week.
Definition ucal.h:502
@ UCAL_WEDNESDAY
Wednesday.
Definition ucal.h:510
@ UCAL_SATURDAY
Saturday.
Definition ucal.h:516
@ UCAL_THURSDAY
Thursday.
Definition ucal.h:512
@ UCAL_MONDAY
Monday.
Definition ucal.h:506
@ UCAL_SUNDAY
Sunday.
Definition ucal.h:504
@ UCAL_FRIDAY
Friday.
Definition ucal.h:514
@ UCAL_TUESDAY
Tuesday.
Definition ucal.h:508
U_CAPI int32_t ucal_getAttribute(const UCalendar *cal, UCalendarAttribute attr)
Get a numeric attribute associated with a UCalendar.
U_CAPI int32_t ucal_get(const UCalendar *cal, UCalendarDateFields field, UErrorCode *status)
Get the current value of a field from a UCalendar.
U_CAPI const char * ucal_getType(const UCalendar *cal, UErrorCode *status)
Get the resource keyword value string designating the calendar type for the UCalendar.
U_CAPI void ucal_add(UCalendar *cal, UCalendarDateFields field, int32_t amount, UErrorCode *status)
Add a specified signed amount to a particular field in a UCalendar.
U_CAPI UCalendar * ucal_open(const UChar *zoneID, int32_t len, const char *locale, UCalendarType type, UErrorCode *status)
Open a UCalendar.
UCalendarLimitType
Possible limit values for a UCalendar.
Definition ucal.h:1311
@ UCAL_ACTUAL_MAXIMUM
Actual maximum value.
Definition ucal.h:1323
@ UCAL_ACTUAL_MINIMUM
Actual minimum value.
Definition ucal.h:1321
@ UCAL_GREATEST_MINIMUM
Greatest minimum value.
Definition ucal.h:1317
@ UCAL_MINIMUM
Minimum value.
Definition ucal.h:1313
@ UCAL_MAXIMUM
Maximum value.
Definition ucal.h:1315
@ UCAL_LEAST_MAXIMUM
Least maximum value.
Definition ucal.h:1319
UCalendarAMPMs
Possible AM/PM values in a UCalendar.
Definition ucal.h:563
@ UCAL_AM
AM.
Definition ucal.h:565
@ UCAL_PM
PM.
Definition ucal.h:567
U_CAPI UEnumeration * ucal_openTimeZones(UErrorCode *ec)
Create an enumeration over all time zones.
U_CAPI UBool ucal_getTimeZoneTransitionDate(const UCalendar *cal, UTimeZoneTransitionType type, UDate *transition, UErrorCode *status)
Get the UDate for the next/previous time zone transition relative to the calendar's current date,...
UTimeZoneTransitionType
Time zone transition types for ucal_getTimeZoneTransitionDate.
Definition ucal.h:1570
@ UCAL_TZ_TRANSITION_PREVIOUS
Get the previous transition before the current date, i.e.
Definition ucal.h:1588
@ UCAL_TZ_TRANSITION_PREVIOUS_INCLUSIVE
Get the previous transition on or before the current date, i.e.
Definition ucal.h:1594
@ UCAL_TZ_TRANSITION_NEXT
Get the next transition after the current date, i.e.
Definition ucal.h:1576
@ UCAL_TZ_TRANSITION_NEXT_INCLUSIVE
Get the next transition on or after the current date, i.e.
Definition ucal.h:1582
UCalendarType
Possible types of UCalendars.
Definition ucal.h:177
@ UCAL_GREGORIAN
Unambiguously designates the Gregorian calendar for the locale.
Definition ucal.h:193
@ UCAL_DEFAULT
A better name for UCAL_TRADITIONAL.
Definition ucal.h:188
@ UCAL_TRADITIONAL
Despite the name, UCAL_TRADITIONAL designates the locale's default calendar, which may be the Gregori...
Definition ucal.h:183
U_CAPI void ucal_clear(UCalendar *calendar)
Clear all fields in a UCalendar.
U_CAPI void ucal_setTimeZone(UCalendar *cal, const UChar *zoneID, int32_t len, UErrorCode *status)
Set the TimeZone used by a UCalendar.
U_CAPI int32_t ucal_getDSTSavings(const UChar *zoneID, UErrorCode *ec)
Return the amount of time in milliseconds that the clock is advanced during daylight savings time for...
U_CAPI void ucal_getTimeZoneOffsetFromLocal(const UCalendar *cal, UTimeZoneLocalOption nonExistingTimeOpt, UTimeZoneLocalOption duplicatedTimeOpt, int32_t *rawOffset, int32_t *dstOffset, UErrorCode *status)
Returns the time zone raw and GMT offset for the given moment in time.
U_CAPI void ucal_setDefaultTimeZone(const UChar *zoneID, UErrorCode *ec)
Set the default time zone.
U_CAPI int32_t ucal_getTimeZoneID(const UCalendar *cal, UChar *result, int32_t resultLength, UErrorCode *status)
Get the ID of the UCalendar's time zone.
U_CAPI int32_t ucal_getHostTimeZone(UChar *result, int32_t resultCapacity, UErrorCode *ec)
Return the current host time zone.
U_CAPI const char * ucal_getAvailable(int32_t localeIndex)
Get a locale for which calendars are available.
U_CAPI int32_t ucal_getDefaultTimeZone(UChar *result, int32_t resultCapacity, UErrorCode *ec)
Return the default time zone.
U_CAPI UCalendar * ucal_clone(const UCalendar *cal, UErrorCode *status)
Open a copy of a UCalendar.
U_CAPI UDate ucal_getNow(void)
Get the current date and time.
U_CAPI UBool ucal_equivalentTo(const UCalendar *cal1, const UCalendar *cal2)
Returns true if two UCalendars are equivalent.
U_CAPI int32_t ucal_getCanonicalTimeZoneID(const UChar *id, int32_t len, UChar *result, int32_t resultCapacity, UBool *isSystemID, UErrorCode *status)
Returns the canonical system timezone ID or the normalized custom time zone ID for the given time zon...
U_CAPI int32_t ucal_getTimeZoneIDForWindowsID(const UChar *winid, int32_t len, const char *region, UChar *id, int32_t idCapacity, UErrorCode *status)
Converts a Windows time zone ID to an equivalent system time zone ID for a region.
U_CAPI int32_t ucal_getFieldDifference(UCalendar *cal, UDate target, UCalendarDateFields field, UErrorCode *status)
Return the difference between the target time and the time this calendar object is currently set to.
U_CAPI void ucal_setMillis(UCalendar *cal, UDate dateTime, UErrorCode *status)
Set a UCalendar's current time in millis.
U_CAPI void ucal_roll(UCalendar *cal, UCalendarDateFields field, int32_t amount, UErrorCode *status)
Add a specified signed amount to a particular field in a UCalendar.
U_CAPI int32_t ucal_getWindowsTimeZoneID(const UChar *id, int32_t len, UChar *winid, int32_t winidCapacity, UErrorCode *status)
Converts a system time zone ID to an equivalent Windows time zone ID.
U_CAPI UEnumeration * ucal_openCountryTimeZones(const char *country, UErrorCode *ec)
Create an enumeration over all time zones associated with the given country.
U_CAPI UDate ucal_getMillis(const UCalendar *cal, UErrorCode *status)
Get a UCalendar's current time in millis.
U_CAPI void ucal_setAttribute(UCalendar *cal, UCalendarAttribute attr, int32_t newValue)
Set a numeric attribute associated with a UCalendar.
UCalendarDisplayNameType
Possible formats for a UCalendar's display name.
Definition ucal.h:856
@ UCAL_STANDARD
Standard display name.
Definition ucal.h:858
@ UCAL_SHORT_DST
Short daylight savings display name.
Definition ucal.h:864
@ UCAL_SHORT_STANDARD
Short standard display name.
Definition ucal.h:860
@ UCAL_DST
Daylight savings display name.
Definition ucal.h:862
U_CAPI UEnumeration * ucal_openTimeZoneIDEnumeration(USystemTimeZoneType zoneType, const char *region, const int32_t *rawOffset, UErrorCode *ec)
Create an enumeration over system time zone IDs with the given filter conditions.
UCalendarMonths
Possible months in a UCalendar.
Definition ucal.h:525
@ UCAL_DECEMBER
December.
Definition ucal.h:549
@ UCAL_MAY
May.
Definition ucal.h:535
@ UCAL_UNDECIMBER
Value of the UCAL_MONTH field indicating the thirteenth month of the year.
Definition ucal.h:554
@ UCAL_APRIL
April.
Definition ucal.h:533
@ UCAL_NOVEMBER
November.
Definition ucal.h:547
@ UCAL_JUNE
June.
Definition ucal.h:537
@ UCAL_AUGUST
August.
Definition ucal.h:541
@ UCAL_JULY
July.
Definition ucal.h:539
@ UCAL_SEPTEMBER
September.
Definition ucal.h:543
@ UCAL_JANUARY
January.
Definition ucal.h:527
@ UCAL_FEBRUARY
February.
Definition ucal.h:529
@ UCAL_MARCH
March.
Definition ucal.h:531
@ UCAL_OCTOBER
October.
Definition ucal.h:545
U_CAPI UBool ucal_isSet(const UCalendar *cal, UCalendarDateFields field)
Determine if a field in a UCalendar is set.
U_CAPI void ucal_setDateTime(UCalendar *cal, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode *status)
Set a UCalendar's current date.
void * UCalendar
A calendar.
Definition ucal.h:172
U_CAPI int32_t ucal_countAvailable(void)
Determine how many locales have calendars available.
C API: String Enumeration.
struct UEnumeration UEnumeration
structure representing an enumeration object instance
Definition uenum.h:44
C API: Locale ID functionality similar to C++ class Locale.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested,...
Definition uloc.h:338
int8_t UBool
The ICU boolean type, a signed-byte integer.
Definition umachine.h:247
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition umachine.h:110
char16_t UChar
The base type for UTF-16 code units and pointers.
Definition umachine.h:378
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition utypes.h:415
double UDate
Date and Time data type.
Definition utypes.h:203