Changeset 52 for www/global.php
- Timestamp:
- Feb 24, 2008, 3:18:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/global.php
r48 r52 45 45 { 46 46 return(date('Y-m-d H:i:s', $Time)); 47 } 48 49 function MysqlDateTimeToTime($Time) 50 { 51 $Parts = explode(' ', $Time); 52 $DateParts = explode('-', $Parts[0]); 53 $TimeParts = explode(':', $Parts[1]); 54 $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[2], $DateParts[0]); 55 return($Result); 56 } 57 58 function MysqlDateToTime($Time) 59 { 60 return(MysqlDateTimeToTime($Time.' 0:0:0')); 47 61 } 48 62
Note:
See TracChangeset
for help on using the changeset viewer.