Home | History | Annotate | Download | only in cintltst

Lines Matching refs:ucal

24 #include "unicode/ucal.h"
1864 UCalendar* ucal = ucal_open(tfdItemPtr->timezone, -1, tfdItemPtr->locale, UCAL_DEFAULT, &status);
1870 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1871 yDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_YEAR, &status);
1872 MDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MONTH, &status);
1873 dDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_DATE, &status);
1874 HDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_HOUR, &status);
1875 mDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MINUTE, &status);
1876 sDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_SECOND, &status);
1892 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1893 yDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_YEAR, &status);
1894 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1895 MDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MONTH, &status);
1896 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1897 dDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_DATE, &status);
1898 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1899 HDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_HOUR, &status);
1900 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1901 mDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MINUTE, &status);
1915 ucal_setMillis(ucal, tfdItemPtr->start, &status);
1916 sDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_SECOND, &status);
1930 ucal_close(ucal);
1938 UCalendar* ucal;
1942 ucal = ucal_open(tzID, -1, NULL, UCAL_DEFAULT, &status);
1948 if (ucal_getAttribute(ucal, UCAL_REPEATED_WALL_TIME) != UCAL_WALLTIME_LAST) {
1952 if (ucal_getAttribute(ucal, UCAL_SKIPPED_WALL_TIME) != UCAL_WALLTIME_LAST) {
1957 ucal_setAttribute(ucal, UCAL_REPEATED_WALL_TIME, UCAL_WALLTIME_FIRST);
1958 ucal_clear(ucal);
1959 ucal_setDateTime(ucal, 2011, 11-1, 6, 1, 30, 0, &status);
1960 t = ucal_getMillis(ucal, &status);
1970 ucal_setAttribute(ucal, UCAL_REPEATED_WALL_TIME, UCAL_WALLTIME_LAST);
1971 ucal_clear(ucal);
1972 ucal_setDateTime(ucal, 2011, 11-1, 6, 1, 30, 0, &status);
1973 t = ucal_getMillis(ucal, &status);
1983 ucal_setAttribute(ucal, UCAL_SKIPPED_WALL_TIME, UCAL_WALLTIME_FIRST);
1984 ucal_clear(ucal);
1985 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
1986 t = ucal_getMillis(ucal, &status);
1996 ucal_setAttribute(ucal, UCAL_SKIPPED_WALL_TIME, UCAL_WALLTIME_LAST);
1997 ucal_clear(ucal);
1998 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
1999 t = ucal_getMillis(ucal, &status);
2009 ucal_setAttribute(ucal, UCAL_SKIPPED_WALL_TIME, UCAL_WALLTIME_NEXT_VALID);
2010 ucal_clear(ucal);
2011 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
2012 t = ucal_getMillis(ucal, &status);
2022 ucal_setAttribute(ucal, UCAL_LENIENT, 0);
2023 ucal_clear(ucal);
2024 ucal_setDateTime(ucal, 2011, 3-1, 13, 2, 30, 0, &status);
2025 t = ucal_getMillis(ucal, &status);
2032 ucal_close(ucal);
2291 UCalendar * ucal = ucal_open(zoneGMT, -1, "en", UCAL_GREGORIAN, &status);
2296 ucal_setTimeZone(ucal, itemPtr->zoneName, -1, &status);
2297 ucal_setDateTime(ucal, itemPtr->year, itemPtr->month, itemPtr->day, 12, 0, 0, &status);
2298 curMillis = ucal_getMillis(ucal, &status);
2303 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_PREVIOUS, &transition1, &status);
2308 ucal_setMillis(ucal, transition1, &status);
2309 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_PREVIOUS_INCLUSIVE, &transition2, &status);
2317 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_NEXT, &transition1, &status);
2322 ucal_setMillis(ucal, transition1, &status);
2323 result = ucal_getTimeZoneTransitionDate(ucal, UCAL_TZ_TRANSITION_NEXT_INCLUSIVE, &transition2, &status);
2336 ucal_close(ucal);