Changeset 924 for trunk/Common/Form
- Timestamp:
- May 10, 2022, 10:09:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/TimeDiff.php
r887 r924 9 9 if ($Item['Value'] == null) $Output = ''; 10 10 else { 11 $Output = sprintf('%02d', floor($Item['Value'] / 3600 % 24)).':'.12 sprintf('%02d', floor($Item['Value'] / 60 % 60)).':'.13 sprintf('%02d', floor($Item['Value'] % 60));11 $Output = sprintf('%02d', floor($Item['Value'] / 3600) % 24).':'. 12 sprintf('%02d', floor($Item['Value'] / 60) % 60).':'. 13 sprintf('%02d', floor($Item['Value']) % 60); 14 14 $Days = floor($Item['Value'] / (60 * 60 * 24)); 15 15 if ($Days > 0) $Output = $Days.' dnů '.$Output;
Note:
See TracChangeset
for help on using the changeset viewer.