File: units.texi

package info (click to toggle)
dateutils 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,924 kB
  • sloc: ansic: 22,097; makefile: 1,666; yacc: 198; sh: 168; lex: 108
file content (21 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@section Specifying durations

Some tools (@samp{dadd}, @samp{dseq}) need durations as their input.
Durations are generally incompatible with input formats as specified by
@samp{-i|--input-format} and (at the moment) the input syntax is fixed.

The general format is @samp{[+-]Nunit} where @samp{+} or @samp{-} is the
sign, @samp{N} a number, and @samp{unit} the unit as discussed below.

Units:
@verbatim
  s  seconds
  m  minutes
  h  hours
  rs real-life seconds, as in including leap second transitions

  d  days
  b  business days
  mo months
  y  years
@end verbatim