note 86929 added to function.mktime
| From: | thebloodyharry at gmail dot com | Date: | Tue, 11 Nov 2008 02:04:37 +0000 |
| Subject: | note 86929 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146374@lists.php.net to get a copy of this message | ||
here simple sample for timestamps.(using malaysia GMT 8)
$mkendtimep=mktime(date("H")+8, date("i"), date("s"),
date("m"), date("d"), date("Y"));
$todaydate=date("(d/m/y) H:i:s", $mkendtimep);
if (date("l")=="Monday") { $mday=Monday; } else
if (date("l")=="Tuesday") { $mday=Tuesday; } else
if (date("l")=="Wednesday") { $mday=Wednesday; } else
if (date("l")=="Thursday") { $mday=Thursday; } else
if (date("l")=="Friday") { $mday=Friday; } else
if (date("l")=="Saturday") { $mday=Saturday; } else
if (date("l")=="Sunday"){ $mday=Sunday; }
$realtime="$mday$todaydate (GMT +8)";
..hope it will help you out....
----
Server IP: 213.249.64.162
Probable Submitter: 124.82.126.237
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- https://master.php.net/note/edit/86929
Del: integrated -- https://master.php.net/note/delete/86929/integrated
Del: useless -- https://master.php.net/note/delete/86929/useless
Del: bad code -- https://master.php.net/note/delete/86929/bad+code
Del: spam -- https://master.php.net/note/delete/86929/spam
Del: non-english -- https://master.php.net/note/delete/86929/non-english
Del: in docs -- https://master.php.net/note/delete/86929/in+docs
Del: other reasons-- https://master.php.net/note/delete/86929
Reject -- https://master.php.net/note/reject/86929
Search -- https://master.php.net/manage/user-notes.php