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

Documentation

Add a specified signed amount to a particular field in a UCalendar. This will not modify more significant fields in the calendar.
Parameters:
cal - The UCalendar to which to add.
field - The field to which to add the signed value; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET.
amount - The signed amount to add to field. If the amount causes the value to exceed to maximum or minimum values for that field, the field is pinned to a permissible value.
status - A pointer to an UErrorCode to receive any errors
See Also:
ucal_add

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de