Lines Matching refs:et1
101 static int ExplodedTimeIsEqual(const PRExplodedTime *et1,
104 if (et1->tm_usec == et2->tm_usec &&
105 et1->tm_sec == et2->tm_sec &&
106 et1->tm_min == et2->tm_min &&
107 et1->tm_hour == et2->tm_hour &&
108 et1->tm_mday == et2->tm_mday &&
109 et1->tm_month == et2->tm_month &&
110 et1->tm_year == et2->tm_year &&
111 et1->tm_wday == et2->tm_wday &&
112 et1->tm_yday == et2->tm_yday &&
113 et1->tm_params.tp_gmt_offset == et2->tm_params.tp_gmt_offset &&
114 et1->tm_params.tp_dst_offset == et2->tm_params.tp_dst_offset) {
431 PRExplodedTime et1, et2;
444 et1.tm_usec = 0;
445 et1.tm_sec = 0;
446 et1.tm_min = 0;
447 et1.tm_hour = 0;
448 et1.tm_mday = 4;
449 et1.tm_month = 4 - 1;
450 et1.tm_year = 1917;
451 et1.tm_params = PR_GMTParameters(&et1);
452 PR_NormalizeTime(&et1, PR_LocalTimeParameters);
453 secs = PR_ImplodeTime(&et1);
461 if (!ExplodedTimeIsEqual(&et1, &et2)) {
467 ttt = PR_ImplodeTime(&et1);
473 et1.tm_usec = 0;
474 et1.tm_sec = 0;
475 et1.tm_min = 0;
476 et1.tm_hour = 0;
477 et1.tm_mday = 4;
478 et1.tm_month = 7 - 1;
479 et1.tm_year = 2050;
480 et1.tm_params = PR_GMTParameters(&et1);
481 PR_NormalizeTime(&et1, PR_LocalTimeParameters);
482 secs = PR_ImplodeTime(&et1);
490 if (!ExplodedTimeIsEqual(&et1, &et2)) {
496 testParseTimeString(PR_ImplodeTime(&et1));
515 PRExplodedTime et, et1, et2;
549 PR_ExplodeTime(usecs, PR_USPacificTimeParameters, &et1);
555 if (!ExplodedTimeIsEqual(&et1, &et2)) {
557 PrintExplodedTime(&et1);
565 if (LL_NE(usecs, PR_ImplodeTime(&et1))) {
568 PrintExplodedTime(&et1);
575 if (!dstInEffect && et1.tm_params.tp_dst_offset) {
580 PrintExplodedTime(&et1);
582 } else if (dstInEffect && !et1.tm_params.tp_dst_offset) {
587 PrintExplodedTime(&et1);
591 et = et1;
602 PRExplodedTime et, et1, et2;
637 PR_ExplodeTime(usecs, PR_LocalTimeParameters, &et1);
643 if (!ExplodedTimeIsEqual(&et1, &et2)) {
645 PrintExplodedTime(&et1);
652 if (LL_NE(usecs, PR_ImplodeTime(&et1))) {
654 PrintExplodedTime(&et1);
661 if (!dstInEffect && et1.tm_params.tp_dst_offset) {
666 PrintExplodedTime(&et1);
668 } else if (dstInEffect && !et1.tm_params.tp_dst_offset) {
673 PrintExplodedTime(&et1);
677 et = et1;
687 PRExplodedTime et, et1, et2;
722 PR_ExplodeTime(usecs, PR_LocalTimeParameters, &et1);
728 if (!ExplodedTimeIsEqual(&et1, &et2)) {
730 PrintExplodedTime(&et1);
737 if (LL_NE(usecs, PR_ImplodeTime(&et1))) {
740 PrintExplodedTime(&et1);
747 if (!dstInEffect && et1.tm_params.tp_dst_offset) {
752 PrintExplodedTime(&et1);
754 } else if (dstInEffect && !et1.tm_params.tp_dst_offset) {
759 PrintExplodedTime(&et1);
763 et = et1;