Changeset 396 for beta/inc/server.php
- Timestamp:
- Oct 27, 2008, 7:32:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/server.php
r393 r396 7 7 } 8 8 // -- 9 public function HumanDate ($date )9 public function HumanDate ($date,$time = 1) 10 10 { 11 11 // input date is 0000-00-00 00:00:00 … … 14 14 $time_stp = explode(":",$date_arr[1]); 15 15 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 16 $human_date = date ("d.m.Y H:i:s",$time); 16 if ($time == 1) 17 { 18 $human_date = date ("d.m.Y H:i:s",$time); 19 } 20 else 21 { 22 $human_date = date ("d.m.Y",$time); 23 } 17 24 return $human_date; 18 25 }
Note:
See TracChangeset
for help on using the changeset viewer.