Changeset 24 for trunk/www/types/DateTime.php
- Timestamp:
- Jun 12, 2009, 11:40:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/types/DateTime.php
r11 r24 8 8 { 9 9 global $MonthNames; 10 11 if($Item['Value'] != '') 12 { 13 $ValueParts = explode(' ', $Item['Value']); 14 $DateParts = explode('-', $ValueParts[0]); 15 $TimeParts = explode(':', $ValueParts[1]); 10 16 11 $ValueParts = explode(' ', $Item['Value']); 12 $DateParts = explode('-', $ValueParts[0]); 13 $TimeParts = explode(':', $ValueParts[1]); 14 15 $Output = $TimeParts[0].':'.$TimeParts[1].':'.$TimeParts[2].' '.($DateParts[2] * 1).'. '.$MonthNames[$DateParts[1] * 1].' '.$DateParts[0]; 17 $Output = $TimeParts[0].':'.$TimeParts[1].':'.$TimeParts[2].' '.($DateParts[2] * 1).'. '.$MonthNames[$DateParts[1] * 1].' '.$DateParts[0]; 18 } else $Output = ''; 16 19 return($Output); 17 20 }
Note:
See TracChangeset
for help on using the changeset viewer.