Manual Reference Pages - sec2days.1.man (1m_time)
NAME
sec2days(1f) - [TIME] Convert seconds to string of form dd-hh:mm:ss
(LICENSE:PD)
CONTENTS
Synopsis
Description
Options
Example
Author
License
SYNOPSIS
sec2days nnnn[.xxx] [ -crop]| --version| --help
DESCRIPTION
Given a numeric string representing seconds convert it to a string
of the form
dd-hh:mm:ss
where dd is days, hh hours, mm minutes and ss seconds.
OPTIONS
|
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
|
|
EXAMPLE
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
AUTHOR
John S. Urban
LICENSE
Public Domain
| sec2days.1.man (1m_time) | September 02, 2021 |
Generated by manServer 1.08 from fe9c10c6-05ce-45a6-9ba3-7db0d1903aa8 using man macros.