sec2days(1f) - [TIME] Convert seconds to string of form dd-hh:mm:ss (LICENSE:PD)
Synopsis
Description
Options
Example
Author
License
sec2days nnnn[.xxx] [ -crop]| --version| --help
Given a numeric string representing seconds convert it to a string of the form
dd-hh:mm:sswhere dd is days, hh hours, mm minutes and ss seconds.
nnnn[.xxx] number of seconds to convert to string of form dd-hh:mm:ss. nnnn may be interspersed with unit codes d,h,m,s. Spaces, commas and case are ignored. Allowed aliases for the unit codes are
d days and day h hours,hour,hrs, and hr m minutes,minute and min s seconds,second and sec -crop trim leading zero values from output -radix character used as decimal separator --help display this help and exit --version output version information and exit
usage
sec2days 129860 1-12:04:20 sec2days 1d2h3m4s 1-02:03:04 sec2days 1.0 days 2 hours 3 minutes 4 seconds 1-02:03:04 sec2days 1.5d 1-12:00:00
John S. Urban
Public Domain
sec2days.1.man (1m_time) | September 02, 2021 |