Changeset 202 for trunk/lib/Utilities.inc.php
- Timestamp:
- Jul 13, 2006 11:24:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r201 r202 295 295 function humanTime($seconds, $max_unit=null, $format='%01.1f') 296 296 { 297 // Units 297 // Units: array of seconds in the unit, singular and plural unit names. 298 298 $units = array( 299 299 'second' => array(1, _("second"), _("seconds")), … … 307 307 ); 308 308 309 // Max unit 309 // Max unit to calculate. 310 310 $max_unit = isset($units[$max_unit]) ? $max_unit : 'decade'; 311 311
Note: See TracChangeset
for help on using the changeset viewer.