|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-09-06 13:56 UTC] cooper at cooper8 dot com
The script that produces the problem for me:
<? system('date') ?>
<p>
<? system('date -u') ?>
<p>
<? print date('l, d-M-y h:i:s') ?>
<p>
<? print gmdate('l, d-M-y h:i:s') ?>
<p>
The output on my system (central daylight time):
Sun Sep 6 12:56:02 CDT 1998
Sun Sep 6 17:56:02 GMT 1998
Sunday, 06-Sep-98 12:56:02
Sunday, 06-Sep-98 05:56:02
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jun 17 12:00:02 2026 UTC |
Use capital H to get hour 0..23, use small h to get hour 1..12. print gmdate('l, d-M-y H:i:s');