Changeset 56 for branches/old/stat_functions.php
- Timestamp:
- Feb 21, 2015, 12:17:01 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/old/stat_functions.php
r52 r56 7 7 list($Usec, $Sec) = explode(" ",microtime()); 8 8 return ((float)$Usec + (float)$Sec); 9 }10 11 function MysqlDateTimeToTime($Time)12 {13 $Parts = explode(' ', $Time);14 $DateParts = explode('-', $Parts[0]);15 $TimeParts = explode(':', $Parts[1]);16 $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[2], $DateParts[0]);17 return($Result);18 }19 20 function TimeToMysqlDateTime($Time)21 {22 return(date('Y-m-d H:i:s', $Time));23 9 } 24 10
Note:
See TracChangeset
for help on using the changeset viewer.