主页
PHP
PHP 日期和时间
tryphp_date3
运行 ❯
×
更改方向
保存代码
更改主题
<!DOCTYPE html> <html> <body> <?php // set default timezone date_default_timezone_set("America/New_York"); echo "The current date and time in America/New York is " . date("Y-m-d H:i:s"); ?> </body> </html>