03c04-2.php

来自「介绍PHP5的给类型函数应用」· PHP 代码 · 共 15 行

PHP
15
字号
<?php// Set the default timezone to US/Eastern time:date_default_timezone_set('US/Eastern');// Generate a timestamp for Jan 1st, 2000 at 8am in Tokyo// First using the 'JST' notation (Japan Standard Time)$stamp1 = strtotime('1/1/2000 8am JST');// Then with the actual time variation: 9 hours ahead of UTC$stamp2 = strtotime('Jan 1 2000 08:00 +0900');// Output these dates in a standard format (RFC1123), they will print:// Fri, 31 Dec 1999 18:00:00 ESTecho '<p>', date(DATE_RFC1123, $stamp1) ,'</p>';echo '<p>', date(DATE_RFC1123, $stamp2) ,'</p>';?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?