<?
//Pass 2005-01-22 01:05:00 and get the output Sun, Jan 22, 07 : 01:05:am
function SafGetFullDateTime04($mytimestamp){ //send 2006-05-22 00:00:00 Output Sun, Mar 11, 07 : 01:05:am
if ($timestamp!="0000-00-00 00:00:00") {
list($year,$month,$day,$hour,$minute,$second) = explode("-",str_replace(array(" ",":"),"-",$mytimestamp));
$mytimestamp = date('d M, D, y',mktime($hour, $minute, $second, $month, $day, $year));
$mytimestamp = $mytimestamp . "<br><font color=\"#808080\">" . date('h:i:a',mktime($hour, $minute, $second, $month, $day, $year)) . "</font>";
return $mytimestamp;
}
}
?>
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2013
(219)
-
▼
August
(13)
- Listing subcategories or chilld categories using php
- PHP Encryption and Decryption Function
- Web Services
- PHP_Wincache - Wincache for PHP 5.4
- Contro strucrutes in Php: continue
- Woltlab Burning Board 2.3.3 Color Palette Fix for ...
- where in php with mysql
- Feach a URL and print as HTML using SafFeachURL
- Why we learn PHP
- Print full formated time using SafGetFullDateTime04
- Mudahnya Membuat Barcode dengan PHP
- PHP Forms
- for getting the text in a span and write it to the...
-
▼
August
(13)