Lines Matching refs:UCalendar
24 * UCalendar C API is used for converting between a <code>UDate</code> object
32 * Types of <code>UCalendar</code> interpret a <code>UDate</code>
39 * <code>UCalendar</code> whose time fields have been initialized
45 * UCalendar *caldef;
56 * A <code>UCalendar</code> object can produce all the time field values
153 typedef void* UCalendar;
180 /** Possible fields in a UCalendar
450 /** Possible days of the week in a UCalendar
473 /** Possible months in a UCalendar. Note: Calendar month is 0-based.
511 /** Possible AM/PM values in a UCalendar
664 * Open a UCalendar.
665 * A UCalendar may be used to convert a millisecond value to a year,
669 * the UCalendar returned by the function is initialized with GMT zone with TimeZone ID
676 * @param type The type of UCalendar to open. This can be UCAL_GREGORIAN to open the Gregorian
682 * @return A pointer to a UCalendar, or 0 if an error occurred.
686 U_STABLE UCalendar* U_EXPORT2
694 * Close a UCalendar.
695 * Once closed, a UCalendar may no longer be used.
696 * @param cal The UCalendar to close.
700 ucal_close(UCalendar *cal);
708 * "Smart pointer" class, closes a UCalendar via ucal_close().
715 U_DEFINE_LOCAL_OPEN_POINTER(LocalUCalendarPointer, UCalendar, ucal_close);
722 * Open a copy of a UCalendar.
726 * @return A pointer to a UCalendar identical to cal.
729 U_STABLE UCalendar* U_EXPORT2
730 ucal_clone(const UCalendar* cal,
734 * Set the TimeZone used by a UCalendar.
735 * A UCalendar uses a timezone for converting from Greenwich time to local time.
736 * @param cal The UCalendar to set.
743 ucal_setTimeZone(UCalendar* cal,
749 * Get the ID of the UCalendar's time zone.
751 * @param cal The UCalendar to query.
752 * @param result Receives the UCalendar's time zone ID.
759 ucal_getTimeZoneID(const UCalendar *cal,
765 * Possible formats for a UCalendar's display name
783 * Get the display name for a UCalendar's TimeZone.
785 * @param cal The UCalendar to query.
796 ucal_getTimeZoneDisplayName(const UCalendar* cal,
804 * Determine if a UCalendar is currently in daylight savings time.
806 * @param cal The UCalendar to query.
812 ucal_inDaylightTime(const UCalendar* cal,
820 * This function works only for Gregorian calendars. If the UCalendar is not
836 ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode);
843 * This function works only for Gregorian calendars. If the UCalendar is not
859 ucal_getGregorianChange(const UCalendar *cal, UErrorCode *pErrorCode);
862 * Types of UCalendar attributes
929 * Get a numeric attribute associated with a UCalendar.
932 * @param cal The UCalendar to query.
940 ucal_getAttribute(const UCalendar* cal,
944 * Set a numeric attribute associated with a UCalendar.
947 * @param cal The UCalendar to set.
955 ucal_setAttribute(UCalendar* cal,
961 * A UCalendar in a locale returned by this function will contain the correct
983 * Get a UCalendar's current time in millis.
985 * @param cal The UCalendar to query.
994 ucal_getMillis(const UCalendar* cal,
998 * Set a UCalendar's current time in millis.
1000 * @param cal The UCalendar to set.
1009 ucal_setMillis(UCalendar* cal,
1014 * Set a UCalendar's current date.
1016 * @param cal The UCalendar to set.
1028 ucal_setDate(UCalendar* cal,
1035 * Set a UCalendar's current date.
1037 * @param cal The UCalendar to set.
1052 ucal_setDateTime(UCalendar* cal,
1071 ucal_equivalentTo(const UCalendar* cal1,
1072 const UCalendar* cal2);
1075 * Add a specified signed amount to a particular field in a UCalendar.
1080 * @param cal The UCalendar to which to add.
1093 ucal_add(UCalendar* cal,
1099 * Add a specified signed amount to a particular field in a UCalendar.
1110 * @param cal The UCalendar to which to add.
1123 ucal_roll(UCalendar* cal,
1129 * Get the current value of a field from a UCalendar.
1131 * @param cal The UCalendar to query.
1145 ucal_get(const UCalendar* cal,
1150 * Set the value of a field in a UCalendar.
1152 * @param cal The UCalendar to set.
1165 ucal_set(UCalendar* cal,
1170 * Determine if a field in a UCalendar is set.
1172 * @param cal The UCalendar to query.
1185 ucal_isSet(const UCalendar* cal,
1189 * Clear a field in a UCalendar.
1191 * @param cal The UCalendar containing the field to clear.
1203 ucal_clearField(UCalendar* cal,
1207 * Clear all fields in a UCalendar.
1209 * @param calendar The UCalendar to clear.
1217 ucal_clear(UCalendar* calendar);
1220 * Possible limit values for a UCalendar
1242 * Determine a limit for a field in a UCalendar.
1244 * @param cal The UCalendar to query.
1256 ucal_getLimit(const UCalendar* cal,
1269 ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode* status);
1302 * Get the resource keyword value string designating the calendar type for the UCalendar.
1303 * @param cal The UCalendar to query.
1309 ucal_getType(const UCalendar *cal, UErrorCode* status);
1368 * calendar system associated with this UCalendar (the locale's region is
1376 * @param cal The UCalendar to query.
1383 ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode* status);
1393 * @param cal The UCalendar to query.
1401 ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status);
1406 * @param cal The UCalendar to query.
1414 ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status);
1430 * @param cal The UCalendar to compare and update.
1441 ucal_getFieldDifference(UCalendar* cal,
1485 * @param cal The UCalendar to query.
1495 ucal_getTimeZoneTransitionDate(const UCalendar* cal, UTimeZoneTransitionType type,