| 1 | <?php |
||
| 5 | class Time |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Transform milliseconds date into trackmania format. |
||
| 9 | * |
||
| 10 | * @param $time |
||
| 11 | * @param bool $milliseconds |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 1 | public function milisecondsToTrackmania($time, $milliseconds = false) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Transform trackmania formated time in miliseconds. |
||
| 27 | * |
||
| 28 | * @param $string |
||
| 29 | * |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | 1 | public function trackmaniaToMiliseconds($string) |
|
| 41 | } |
||
| 42 |