| 1 | <?php |
||
| 8 | class TorrentUtils |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param $torrent |
||
| 12 | * @return int seconds from torrent finish download |
||
| 13 | */ |
||
| 14 | public static function getTorrentAge($torrent) |
||
| 21 | |||
| 22 | public static function getTorrentAgeInDays($torrent) |
||
| 26 | |||
| 27 | public static function getSizeInGb($sizeInBytes, $round = 2) |
||
| 32 | } |
||
| 33 |