PHP : Date & Time
Sunday, March 8, 2009 7:42Posted in category PHP
PHP coding for Date & Time.. enjoy all!
- <?php
- //created by mamat@gengjawa
- $time_offset = " 240 "; // Change this to your time zone (240 for malaysia)
- $time_a = ($time_offset * 120);
- $datetime = $date . ' ' $time; // output like this : 2009-03-04 20:33:05
- ?>
output:
2009-03-04 20:33:05
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.












tymmoon says:
May 16th, 2009 at 12:45 AM
bgsla awak sdiakn 1 medium yg bmanfaat..nasyid cthnye.. awk blh tmbhkn lagu dl n skrg..cm kmpln dehearty sy ske sgt2..maMat says:
May 19th, 2009 at 6:29 PM
hehe tymmoon.. awak salah tmpt la nak post komen..