Home | History | Annotate | Download | only in cintltst

Lines Matching full:ucal_get

560         dateBit = ucal_get(caldef2, UCAL_MILLISECOND, &status);
578 dateBit = ucal_get(caldef3, UCAL_DAY_OF_MONTH, &status);
601 hour=ucal_get(caldef2, UCAL_HOUR_OF_DAY, &status);
620 if(hour == ucal_get(caldef2, UCAL_HOUR_OF_DAY, &status))
622 else if((hour-8 + 1) != ucal_get(caldef2, UCAL_HOUR_OF_DAY, &status)) /*because it is not in daylight savings time */
639 zoneOffset = ucal_get(caldef2, UCAL_ZONE_OFFSET, &status);
641 log_err("Error in getting the time zone using ucal_get() after using ucal_setTimeZone(): %s\n", u_errorName(status));
644 log_err("Error in getting the time zone using ucal_get() after using ucal_setTimeZone() offset=%d\n", zoneOffset);
656 zoneOffset = ucal_get(caldef2, UCAL_ZONE_OFFSET, &status);
658 log_err("Error in getting the time zone using ucal_get() after using ucal_setTimeZone(): %s\n", u_errorName(status));
661 log_err("Error in getting the time zone using ucal_get() after using ucal_setTimeZone() offset=%d\n", zoneOffset);
766 /*Testing ucal_get()*/
767 log_verbose("\nTesting the ucal_get() function of Calendar\n");
772 if(ucal_get(cal, UCAL_YEAR, &status)!=1999 || ucal_get(cal, UCAL_MONTH, &status)!=2 ||
773 ucal_get(cal, UCAL_DATE, &status)!=12 || ucal_get(cal, UCAL_HOUR, &status)!=5)
774 log_data_err("error in ucal_get() -> %s (Are you missing data?)\n", u_errorName(status));
775 else if(ucal_get(cal, UCAL_DAY_OF_WEEK_IN_MONTH, &status)!=2 || ucal_get(cal, UCAL_DAY_OF_WEEK, &status)!=6
776 || ucal_get(cal, UCAL_WEEK_OF_MONTH, &status)!=2 || ucal_get(cal, UCAL_WEEK_OF_YEAR, &status)!= 11)
777 log_err("FAIL: error in ucal_get()\n");
779 log_verbose("PASS: ucal_get() works fine\n");
1078 hr = ucal_get(cal, UCAL_HOUR_OF_DAY, &status);
1085 hr = ucal_get(cal, UCAL_HOUR_OF_DAY, &status);
1119 val = ucal_get(cal, UCAL_DAY_OF_WEEK, &status);
1130 val = ucal_get(cal, UCAL_DAY_OF_WEEK_IN_MONTH, &status);
1157 val=ucal_get(cal, UCAL_HOUR_OF_DAY, &status);
1222 initialDOW = ucal_get(cal, UCAL_DAY_OF_WEEK, &status);
1223 if (U_FAILURE(status)) { log_data_err("ucal_get() failed: %s (Are you missing data?)\n", u_errorName(status) ); return; }
1235 newDOW = ucal_get(cal, UCAL_DAY_OF_WEEK, &status);
1236 if (U_FAILURE(status)) { log_err("ucal_get() failed: %s\n", u_errorName(status)); return; }
1316 offset = ucal_get(cal, UCAL_ZONE_OFFSET, &status);
1317 offset += ucal_get(cal, UCAL_DST_OFFSET, &status);
1320 log_err("ucal_get() failed: %s\n", u_errorName(status));
1326 utc = ((ucal_get(cal, UCAL_HOUR_OF_DAY, &status) * 60 +
1327 ucal_get(cal, UCAL_MINUTE, &status)) * 60 +
1328 ucal_get(cal, UCAL_SECOND, &status)) * 1000 +
1329 ucal_get(cal, UCAL_MILLISECOND, &status) - offset;
1331 log_err("ucal_get() failed: %s\n", u_errorName(status));
1363 if (ucal_get(c, UCAL_YEAR, &status) != y ||
1364 ucal_get(c, UCAL_MONTH, &status) != m ||
1365 ucal_get(c, UCAL_DATE, &status) != d ||
1366 ucal_get(c, UCAL_HOUR, &status) != hr ||
1367 ucal_get(c, UCAL_MINUTE, &status) != min ||
1368 ucal_get(c, UCAL_SECOND, &status) != sec ||
1369 ucal_get(c, UCAL_MILLISECOND, &status) != ms) {
1372 ucal_get(c, UCAL_YEAR, &status),
1373 ucal_get(c, UCAL_MONTH, &status) + 1,
1374 ucal_get(c, UCAL_DATE, &status),
1375 ucal_get(c, UCAL_HOUR, &status),
1376 ucal_get(c, UCAL_MINUTE, &status) + 1,
1377 ucal_get(c, UCAL_SECOND, &status),
1378 ucal_get(c, UCAL_MILLISECOND, &status) );
1381 log_err("ucal_get failed: %s\n", u_errorName(status));
1395 if (ucal_get(c,UCAL_YEAR, &status) != y ||
1396 ucal_get(c, UCAL_MONTH, &status) != m ||
1397 ucal_get(c, UCAL_DATE, &status) != d) {
1400 ucal_get(c, UCAL_YEAR, &status),
1401 ucal_get(c, UCAL_MONTH, &status) + 1,
1402 ucal_get(c, UCAL_DATE, &status) );
1405 log_err("ucal_get failed: %s\n", u_errorName(status));
1423 if (ucal_get(c, UCAL_YEAR, &status) == year &&
1424 ucal_get(c, UCAL_MONTH, &status) == month &&
1425 ucal_get(c, UCAL_DATE, &status) == day) {
1460 if (ucal_get(c, UCAL_YEAR, &status) == year &&
1461 ucal_get(c, UCAL_MONTH, &status) == month &&
1462 ucal_get(c, UCAL_DATE, &status) == day &&
1463 ucal_get(c, UCAL_HOUR, &status) == hour &&
1464 ucal_get(c, UCAL_MINUTE, &status) == min &&
1465 ucal_get(c, UCAL_SECOND, &status) == sec &&
1466 ucal_get(c, UCAL_AM_PM, &status) == am_pm ){
2078 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status);
2080 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2093 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status);
2095 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2110 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2111 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status);
2125 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2126 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status);
2157 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status);
2159 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2171 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status);
2173 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2187 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2188 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status);
2204 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2205 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status);
2217 eraNow = ucal_get(ucalTest, UCAL_ERA, &status);
2225 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2226 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status);
2242 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status);
2243 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status);