Annotation of embedaddon/php/ext/date/tests/mktime-2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mktime() [2]
! 3: --INI--
! 4: error_reporting=2047
! 5: --FILE--
! 6: <?php
! 7: $timezones = array(
! 8: 'UTC',
! 9: 'Europe/London'
! 10: );
! 11:
! 12: foreach($timezones as $timezone)
! 13: {
! 14: date_default_timezone_set($timezone);
! 15:
! 16: /* status of daylight saving time unknown */
! 17: var_dump(mktime(0, 0, 0, 1, 1, 2002));
! 18: /* status of daylight saving time unknown */
! 19: var_dump(mktime(0, 0, 0, 1, 1, 2002, -1));
! 20: /* daylight saving time is not in effect */
! 21: var_dump(mktime(0, 0, 0, 1, 1, 2002, 0));
! 22: /* daylight saving time is in effect */
! 23: var_dump(mktime(0, 0, 0, 1, 1, 2002, 1));
! 24:
! 25: /* status of daylight saving time unknown */
! 26: var_dump(mktime(0, 0, 0, 7, 1, 2002));
! 27: /* status of daylight saving time unknown */
! 28: var_dump(mktime(0, 0, 0, 7, 1, 2002, -1));
! 29: /* daylight saving time is not in effect */
! 30: var_dump(mktime(0, 0, 0, 7, 1, 2002, 0));
! 31: /* daylight saving time is in effect */
! 32: var_dump(mktime(0, 0, 0, 7, 1, 2002, 1));
! 33: }
! 34: ?>
! 35: --EXPECTF--
! 36: int(1009843200)
! 37: int(1009843200)
! 38: int(1009843200)
! 39: int(%s)
! 40: int(1025481600)
! 41: int(1025481600)
! 42: int(1025481600)
! 43: int(%s)
! 44: int(1009843200)
! 45: int(1009843200)
! 46: int(1009843200)
! 47: int(1009839600)
! 48: int(1025478000)
! 49: int(1025478000)
! 50: int(1025481600)
! 51: int(1025478000)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>