Ignore:
Timestamp:
Feb 21, 2015, 12:17:01 AM (10 years ago)
Author:
chronos
Message:
  • Added: Version information.
  • Modified: Used newest Database class.
  • Modified: Generated HTML code should be now compain with HTML5 standard.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/old/stat_functions.php

    r52 r56  
    77    list($Usec, $Sec) = explode(" ",microtime());
    88    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));
    239}
    2410
Note: See TracChangeset for help on using the changeset viewer.