Lines Matching defs: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,
750 * Get the ID of the UCalendar's time zone.
752 * @param cal The UCalendar to query.
753 * @param result Receives the UCalendar's time zone ID.
760 ucal_getTimeZoneID(const UCalendar *cal,
767 * Possible formats for a UCalendar's display name
785 * Get the display name for a UCalendar's TimeZone.
787 * @param cal The UCalendar to query.
798 ucal_getTimeZoneDisplayName(const UCalendar* cal,
806 * Determine if a UCalendar is currently in daylight savings time.
808 * @param cal The UCalendar to query.
814 ucal_inDaylightTime(const UCalendar* cal,
822 * This function works only for Gregorian calendars. If the UCalendar is not
838 ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode);
845 * This function works only for Gregorian calendars. If the UCalendar is not
861 ucal_getGregorianChange(const UCalendar *cal, UErrorCode *pErrorCode);
864 * Types of UCalendar attributes
931 * Get a numeric attribute associated with a UCalendar.
934 * @param cal The UCalendar to query.
942 ucal_getAttribute(const UCalendar* cal,
946 * Set a numeric attribute associated with a UCalendar.
949 * @param cal The UCalendar to set.
957 ucal_setAttribute(UCalendar* cal,
963 * A UCalendar in a locale returned by this function will contain the correct
985 * Get a UCalendar's current time in millis.
987 * @param cal The UCalendar to query.
996 ucal_getMillis(const UCalendar* cal,
1000 * Set a UCalendar's current time in millis.
1002 * @param cal The UCalendar to set.
1011 ucal_setMillis(UCalendar* cal,
1016 * Set a UCalendar's current date.
1018 * @param cal The UCalendar to set.
1030 ucal_setDate(UCalendar* cal,
1037 * Set a UCalendar's current date.
1039 * @param cal The UCalendar to set.
1054 ucal_setDateTime(UCalendar* cal,
1073 ucal_equivalentTo(const UCalendar* cal1,
1074 const UCalendar* cal2);
1077 * Add a specified signed amount to a particular field in a UCalendar.
1082 * @param cal The UCalendar to which to add.
1095 ucal_add(UCalendar* cal,
1101 * Add a specified signed amount to a particular field in a UCalendar.
1112 * @param cal The UCalendar to which to add.
1125 ucal_roll(UCalendar* cal,
1131 * Get the current value of a field from a UCalendar.
1133 * @param cal The UCalendar to query.
1147 ucal_get(const UCalendar* cal,
1152 * Set the value of a field in a UCalendar.
1154 * @param cal The UCalendar to set.
1167 ucal_set(UCalendar* cal,
1172 * Determine if a field in a UCalendar is set.
1174 * @param cal The UCalendar to query.
1187 ucal_isSet(const UCalendar* cal,
1191 * Clear a field in a UCalendar.
1193 * @param cal The UCalendar containing the field to clear.
1205 ucal_clearField(UCalendar* cal,
1209 * Clear all fields in a UCalendar.
1211 * @param calendar The UCalendar to clear.
1219 ucal_clear(UCalendar* calendar);
1222 * Possible limit values for a UCalendar
1244 * Determine a limit for a field in a UCalendar.
1246 * @param cal The UCalendar to query.
1258 ucal_getLimit(const UCalendar* cal,
1271 ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode* status);
1304 * Get the resource keyword value string designating the calendar type for the UCalendar.
1305 * @param cal The UCalendar to query.
1311 ucal_getType(const UCalendar *cal, UErrorCode* status);
1377 * @param cal The UCalendar to query.
1384 ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode* status);
1394 * @param cal The UCalendar to query.
1402 ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status);
1407 * @param cal The UCalendar to query.
1415 ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status);
1431 * @param cal The UCalendar to compare and update.
1442 ucal_getFieldDifference(UCalendar* cal,
1488 * @param cal The UCalendar to query.
1498 ucal_getTimeZoneTransitionDate(const UCalendar* cal, UTimeZoneTransitionType type,