sec2days(1f) - [TIME] Convert durations of time to string of form dd-hh:mm:ss (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
sec2days nnnn[.xxx] [ -crop]| --version| --help
Given a numeric string representing seconds or labeled units of time convert it to a string of the form
dd-hh:mm:sswhere dd is days, hh hours, mm minutes and ss seconds.
nnnn[.xxx] Defaults to 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
Nemo Release 3.1 | sec2days (1) | February 23, 2025 |