User Commands  - sec2days (1)

NAME

sec2days(1f) - [TIME] Convert durations of time to string of form dd-hh:mm:ss (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Examples
Author
License

SYNOPSIS

sec2days nnnn[.xxx] [ -crop]| --version| --help

DESCRIPTION

Given a numeric string representing seconds or labeled units of time 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]
  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

EXAMPLES

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


Nemo Release 3.1 sec2days (1) February 23, 2025
Generated by manServer 1.08 from 10168355-a0b7-4b9e-baee-adc0cd4e7fc6 using man macros.