Home | History | Annotate | Download | only in cintltst

Lines Matching refs:caldef

90     UCalendar *caldef = 0, *caldef2 = 0, *calfr = 0, *calit = 0, *calfrclone = 0;
273 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
275 log_data_err("FAIL: error in ucal_open caldef : %s\n - (Are you missing data?)", u_errorName(status));
280 log_data_err("FAIL: error in ucal_open caldef : %s - (Are you missing data?)\n", u_errorName(status));
316 if(caldef && caldef2 && calfr && calit) {
317 if(ucal_equivalentTo(caldef, caldef2) == FALSE || ucal_equivalentTo(caldef, calfr)== TRUE ||
318 ucal_equivalentTo(caldef, calit)== TRUE || ucal_equivalentTo(calfr, calfrclone) == FALSE) {
342 resultlengthneeded=ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", NULL, resultlength, &status);
349 ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", result, resultlength, &status);
371 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_DST, "en_US", result, resultlength, &status);
377 ucal_getTimeZoneDisplayName(caldef, UCAL_STANDARD, "en_US", result, resultlength, &status);
383 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_STANDARD, "en_US", result, resultlength, &status);
395 ucal_setAttribute(caldef, UCAL_LENIENT, count2);
397 ucal_getAttribute(calfr, UCAL_LENIENT)!=ucal_getAttribute(caldef, UCAL_LENIENT) )
435 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 3, 10, 45, 20, &status);
436 ucal_inDaylightTime(caldef, &status );
440 if(!ucal_inDaylightTime(caldef, &status))
446 ucal_close(caldef);
456 caldef = ucal_open(NULL, 0, ucalGetTypeTestPtr->locale, ucalGetTypeTestPtr->calType, &status);
458 const char * calType = ucal_getType(caldef, &status);
467 ucal_close(caldef);
484 UCalendar *caldef = 0, *caldef2 = 0, *caldef3 = 0;
501 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
517 d1=ucal_getMillis(caldef, &status);
524 ucal_setMillis(caldef, d2, &status);
530 d1=ucal_getMillis(caldef, &status);
673 ucal_setDate(caldef,1971, UCAL_DECEMBER, 17, &status);
678 d1=ucal_getMillis(caldef, &status);
687 ucal_setDate(caldef, 1999, UCAL_JANUARY, 10, &status);
688 verify1("1999 10th day of January is :", caldef, datdef, 1999, UCAL_JANUARY, 10);
689 ucal_setDate(caldef, 1999, UCAL_DECEMBER, 3, &status);
690 verify1("1999 3rd day of December is :", caldef, datdef, 1999, UCAL_DECEMBER, 3);
691 ucal_setDate(caldef, 2000, UCAL_MAY, 3, &status);
692 verify1("2000 3rd day of May is :", caldef, datdef, 2000, UCAL_MAY, 3);
693 ucal_setDate(caldef, 1999, UCAL_AUGUST, 32, &status);
694 verify1("1999 32th day of August is :", caldef, datdef, 1999, UCAL_SEPTEMBER, 1);
695 ucal_setDate(caldef, 1999, UCAL_MARCH, 0, &status);
696 verify1("1999 0th day of March is :", caldef, datdef, 1999, UCAL_FEBRUARY, 28);
697 ucal_setDate(caldef, 0, UCAL_MARCH, 12, &status);
704 ucal_setDateTime(caldef,1972, UCAL_MAY, 3, 16, 30, 42, &status);
709 d1=ucal_getMillis(caldef, &status);
719 ucal_setDateTime(caldef, 1999, UCAL_OCTOBER, 10, 6, 45, 30, &status);
720 verify2("1999 10th day of October at 6:45:30 is :", caldef, datdef, 1999, UCAL_OCTOBER, 10, 6, 45, 30, 0 );
721 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 3, 15, 10, 55, &status);
722 verify2("1999 3rd day of March at 15:10:55 is :", caldef, datdef, 1999, UCAL_MARCH, 3, 3, 10, 55, 1);
723 ucal_setDateTime(caldef, 1999, UCAL_MAY, 3, 25, 30, 45, &status);
724 verify2("1999 3rd day of May at 25:30:45 is :", caldef, datdef, 1999, UCAL_MAY, 4, 1, 30, 45, 0);
725 ucal_setDateTime(caldef, 1999, UCAL_AUGUST, 32, 22, 65, 40, &status);
726 verify2("1999 32th day of August at 22:65:40 is :", caldef, datdef, 1999, UCAL_SEPTEMBER, 1, 11, 5, 40,1);
727 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 12, 0, 0, 0,&status);
728 verify2("1999 12th day of March at 0:0:0 is :", caldef, datdef, 1999, UCAL_MARCH, 12, 0, 0, 0, 0);
729 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 12, -10, -10,0, &status);
730 verify2("1999 12th day of March is at -10:-10:0 :", caldef, datdef, 1999, UCAL_MARCH, 11, 1, 50, 0, 1);
734 /*close caldef and datdef*/
735 ucal_close(caldef);