Ubiquity  2.0.3
php rapid development framework
UDateTime.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ubiquity\utils\base;
4 
5 class UDateTime {
6  public static function secondsToTime($seconds){
7  $hours = floor($seconds / 3600);
8  $mins = floor($seconds / 60 % 60);
9  $secs = floor($seconds % 60);
10  return sprintf('%02d:%02d:%02d', $hours, $mins, $secs);
11  }
12 }
13 
static secondsToTime($seconds)
Definition: UDateTime.php:6