View Single Post
Old February 19th, 2005, 07:02 PM   #7 (permalink)
digitaldingus
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
Quote:
function thetime($inhour,$inmin) {
if ($inmin < 10) {
$inmin="0$inmin";
}
if ($inhour == 0) {
$inhour = str_replace("0", "12", $inhour);
$outclock=$inhour.":".$inmin."am";
return($outclock);
}
else {
if ($inhour < 10) {
$inhour = str_replace("0", "", $inhour);
}
}
if ($inhour > 11) {
if ($inhour != 12) {
$inhour=$inhour-12;
}
$outclock=$inhour.":".$inmin."pm";
}
else {
$outclock=$inhour.":".$inmin."am";
}

return($outclock);
}


function formatpptime( $date ) {
global $Globals, $User;

$uoffset = $User['offset'];
$soffset = $Globals['gmtoffset'];
$date = $date + ($uoffset * 3600) + ($soffset *3600);

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);

$cclock = thetime($hour,$min);

return( $cclock );
}


function formatppdate( $date, $glob_date = "" ) {
global $Globals, $User;

$uoffset = $User['offset'];
$soffset = $Globals['gmtoffset'];
$date = $date + ($uoffset * 3600) + ($soffset *3600);

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);
$mon++;
$year=1900+$year;.
So, where do I make the changes.
digitaldingus is offline   Reply With Quote