Changeset 563 for trunk/includes/global.php
- Timestamp:
- Aug 14, 2013, 12:08:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r562 r563 356 356 } 357 357 358 function HumanDateTime($SQLDateTime) 359 { 360 $DateTimeParts = explode(' ', $SQLDateTime); 361 if($DateTimeParts[0] != '0000-00-00') 362 { 363 $DateParts = explode('-', $DateTimeParts[0]); 364 $Output = ($DateParts[2] * 1).'.'.($DateParts[1] * 1).'.'.($DateParts[0] * 1); 365 } else $Output = ' '; 366 if(count($DateTimeParts) > 1) 367 if($DateTimeParts[1] != '00:00:00') 368 { 369 $TimeParts = explode(':', $DateTimeParts[1]); 370 $Output .= ' '.($TimeParts[0] * 1).':'.($TimeParts[1] * 1).':'.($TimeParts[2] * 1); 371 }; 372 return($Output); 373 } 374 358 375 function FollowingTran($TextID, $Table, $GroupId, $Prev = false) 359 376 {
Note:
See TracChangeset
for help on using the changeset viewer.