451{
455
456 if (!pTzSpecificLocalTimeToSystemTime || !pSystemTimeToTzSpecificLocalTime)
457 {
458 win_skip(
"TzSpecificLocalTimeToSystemTime or SystemTimeToTzSpecificLocalTime not available\n");
459 return;
460 }
461
465
476
487
498
499
501
502 { 1, &tzE, {2004,3,-1,28,1,0,0,0}, 15 },
503 { 2, &tzE, {2004,3,-1,28,1,59,59,999}, 15},
504 { 3, &tzE, {2004,3,-1,28,2,0,0,0}, 15},
505
506 { 4, &tzE, {2004,10,-1,31,2,0,0,0} , 15 },
507 { 5, &tzE, {2004,10,-1,31,2,59,59,999}, 15 },
508 { 6, &tzE, {2004,10,-1,31,3,0,0,0}, 17 },
509
510 { 7, &tzW, {2004,4,-1,4,1,0,0,0}, 5},
511 { 8, &tzW, {2004,4,-1,4,1,59,59,999}, 5},
512 { 9, &tzW, {2004,4,-1,4,2,0,0,0}, 5},
513 { 10, &tzW, {2004,10,-1,24,1,0,0,0}, 4},
514 { 11, &tzW, {2004,10,-1,24,1,59,59,999}, 4},
515 { 12, &tzW, {2004,10,-1,24,2,0,0,0 }, 6},
516
517 { 13, &tzS, {2004,4,-1,4,1,0,0,0}, 4},
518 { 14, &tzS, {2004,4,-1,4,1,59,59,999}, 4},
519 { 15, &tzS, {2004,4,-1,4,2,0,0,0}, 6},
520 { 16, &tzS, {2004,10,-1,24,1,0,0,0}, 5},
521 { 17, &tzS, {2004,10,-1,24,1,59,59,999}, 5},
522 { 18, &tzS, {2004,10,-1,24,2,0,0,0}, 5},
523 {0}
524 };
525
526 int yeardays[][6]=
527 {
528 {28,31,4,24,4,24}
529 , {26,29,2,22,2,22}
530 , {25,28,1,28,1,28}
531 , {31,27,7,27,7,27}
532 , {30,26,6,26,6,26}
533 , {28,31,4,24,4,24}
534 , {27,30,3,23,3,23}
535 , {26,29,2,22,2,22}
536 , {25,28,1,28,1,28}
537 , {30,26,6,26,6,26}
538 , {29,25,5,25,5,25}
539 , {28,31,4,24,4,24}
540 , {27,30,3,23,3,23}
541 , {25,28,1,28,1,28}
542 , {31,27,7,27,7,27}
543 , {30,26,6,26,6,26}
544 , {29,25,5,25,5,25}
545 , {27,30,3,23,3,23}
546 , {26,29,2,22,2,22}
547 , {25,28,1,28,1,28}
548 , {31,27,7,27,7,27}
549 ,{0}
550 };
551 for(
j=0 , year = 1999; yeardays[
j][0] ;
j++, year++) {
552 for (
i=0; cases[
i].
nr;
i++) {
553 if(
i) cases[
i].
nr += 18;
556 pTzSpecificLocalTimeToSystemTime( cases[
i].ptz, &(cases[
i].slt), &
result);
558 "Test TzSpecificLocalTimeToSystemTime #%d. Got %4d-%02d-%02d %02d:%02d. Expect hour = %02d\n",
561 }
562 }
563 }
564
566
567 { 1, &tzE, {2004,3,-1,27,15,0,0,0}, 1 },
568 { 2, &tzE, {2004,3,-1,27,15,59,59,999}, 1},
569 { 3, &tzE, {2004,3,-1,27,16,0,0,0}, 3},
570
571 { 4, &tzE, {2004,10,-1,30,15,0,0,0}, 2 },
572 { 5, &tzE, {2004,10,-1,30,15,59,59,999}, 2 },
573 { 6, &tzE, {2004,10,-1,30,16,0,0,0}, 2 },
574
575 { 7, &tzW, {2004,4,-1,4,5,0,0,0}, 1},
576 { 8, &tzW, {2004,4,-1,4,5,59,59,999}, 1},
577 { 9, &tzW, {2004,4,-1,4,6,0,0,0}, 3},
578 { 10, &tzW, {2004,10,-1,24,4,0,0,0}, 1},
579 { 11, &tzW, {2004,10,-1,24,4,59,59,999}, 1},
580 { 12, &tzW, {2004,10,-1,24,5,0,0,0 }, 1},
581
582 { 13, &tzS, {2004,4,-1,4,4,0,0,0}, 1},
583 { 14, &tzS, {2004,4,-1,4,4,59,59,999}, 1},
584 { 15, &tzS, {2004,4,-1,4,5,0,0,0}, 1},
585 { 16, &tzS, {2004,10,-1,24,5,0,0,0}, 1},
586 { 17, &tzS, {2004,10,-1,24,5,59,59,999}, 1},
587 { 18, &tzS, {2004,10,-1,24,6,0,0,0}, 3},
588
589 {0}
590 };
591
592 int yeardays[][6]=
593 {
594 {27,30,4,24,4,24}
595 , {25,28,2,22,2,22}
596 , {24,27,1,28,1,28}
597 , {30,26,7,27,7,27}
598 , {29,25,6,26,6,26}
599 , {27,30,4,24,4,24}
600 , {26,29,3,23,3,23}
601 , {25,28,2,22,2,22}
602 , {24,27,1,28,1,28}
603 , {29,25,6,26,6,26}
604 , {28,24,5,25,5,25}
605 , {27,30,4,24,4,24}
606 , {26,29,3,23,3,23}
607 , {24,27,1,28,1,28}
608 , {30,26,7,27,7,27}
609 , {29,25,6,26,6,26}
610 , {28,24,5,25,5,25}
611 , {26,29,3,23,3,23}
612 , {25,28,2,22,2,22}
613 , {24,27,1,28,1,28}
614 , {30,26,7,27,7,27}
615 , {0}
616 };
617 for(
j=0 , year = 1999; yeardays[
j][0] ;
j++, year++) {
618 for (
i=0; cases[
i].
nr;
i++) {
619 if(
i) cases[
i].
nr += 18;
622 pSystemTimeToTzSpecificLocalTime( cases[
i].ptz, &(cases[
i].slt), &
result);
624 "Test SystemTimeToTzSpecificLocalTime #%d. Got %4d-%02d-%02d %02d:%02d. Expect hour = %02d\n",
627 }
628 }
629
630 }
631}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j