Lines Matching refs:ucal
24 #include "unicode/ucal.h"
1882 UCalendar* ucal = ucal_open(tfdItemPtr->timezone, -1, tfdItemPtr->locale, UCAL_DEFAULT, &status);
1888 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1889 yDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_YEAR, &status);
1890 MDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MONTH, &status);
1891 dDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_DATE, &status);
1892 HDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_HOUR, &status);
1893 mDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MINUTE, &status);
1894 sDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_SECOND, &status);
1910 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1911 yDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_YEAR, &status);
1912 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1913 MDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MONTH, &status);
1914 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1915 dDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_DATE, &status);
1916 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1917 HDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_HOUR, &status);
1918 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1919 mDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MINUTE, &status);
1933 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1934 sDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_SECOND, &status);
1948 ucal_close(ucal);
1956 UCalendar* ucal;
1960 ucal = ucal_open(tzID, -1, NULL, UCAL_DEFAULT, &status);
1966 if (ucal_getAttribute(ucal, UCAL_REPEATED_WALL_TIME) != UCAL_WALLTIME_LAST) {
1970 if (ucal_getAttribute(ucal, UCAL_SKIPPED_WALL_TIME) != UCAL_WALLTIME_LAST) {
1975 ucal_setAttribute(ucal, UCAL_REPEATED_WALL_TIME, UCAL_WALLTIME_FIRST);
1976 ucal_clear(ucal);
1977 ucal_setDateTime(ucal, 2011, 11-1, 6, 1, 30, 0, &status);
1978 t = ucal_getMillis(ucal, &status);
1988 ucal_setAttribute(ucal, UCAL_REPEATED_WALL_TIME, UCAL_WALLTIME_LAST);
1989 ucal_clear(ucal);
1990 ucal_setDateTime(ucal, 2011, 11-1, 6, 1, 30, 0, &status);
1991 t = ucal_getMillis(ucal, &status);
2001 ucal_setAttribute(ucal, UCAL_SKIPPED_WALL_TIME, UCAL_WALLTIME_FIRST);
2002 ucal_clear(ucal);
2003 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
2004 t = ucal_getMillis(ucal, &status);
2014 ucal_setAttribute(ucal, UCAL_SKIPPED_WALL_TIME, UCAL_WALLTIME_LAST);
2015 ucal_clear(ucal);
2016 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
2017 t = ucal_getMillis(ucal, &status);
2027 ucal_setAttribute(ucal, UCAL_SKIPPED_WALL_TIME, UCAL_WALLTIME_NEXT_VALID);
2028 ucal_clear(ucal);
2029 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
2030 t = ucal_getMillis(ucal, &status);
2040 ucal_setAttribute(ucal, UCAL_LENIENT, 0);
2041 ucal_clear(ucal);
2042 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
2043 t = ucal_getMillis(ucal, &status);
2050 ucal_close(ucal);
2309 UCalendar * ucal = ucal_open(zoneGMT, -1, "en", UCAL_GREGORIAN, &status);
2314 ucal_setTimeZone(ucal, itemPtr->zoneName, -1, &status);
2315 ucal_setDateTime(ucal, itemPtr->year, itemPtr->month, itemPtr->day, 12, 0, 0, &status);
2316 curMillis = ucal_getMillis(ucal, &status);
2322 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_PREVIOUS, &transition1, &status);
2327 ucal_setMillis(ucal, transition1, &status);
2328 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_PREVIOUS_INCLUSIVE, &transition2, &status);
2336 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_NEXT, &transition1, &status);
2341 ucal_setMillis(ucal, transition1, &status);
2342 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_NEXT_INCLUSIVE, &transition2, &status);
2355 ucal_close(ucal);