iso86018
Part of the pacemaker cluster resource manager
Usage
iso8601 <command>
[options]
Overview
Display and parse ISO 8601 dates and times
Options
Help Options:
-
-h, --help -
Show help options
-
--help-all -
Show all help options
-
--help-output -
Show output help
-
--help-commands -
Show command options
-
--help-modifiers -
Show output modifiers
Output Options:
-
--output-as=FORMAT -
Specify output format as one of: text (default), xml
-
--output-to=DEST -
Specify file name for output (or "-" for stdout)
Commands:
-
-n, --now -
Display the current date/time
-
-d, --date=DATE -
Parse an ISO 8601 date/time (for example, '2019-09-24 00:30:00 +01:00' or '2019-040')
-
-p, --period=PERIOD -
Parse an ISO 8601 period (interval) with start time (for example, '2005-040/2005-043')
-
-D, --duration=DURATION -
Parse an ISO 8601 duration (for example, 'P1M')
-
-E, --expected=TEXT -
Exit with error status if result does not match this text. Requires:
-nor-d
Output modifiers:
-
-s, --seconds -
Show result as a seconds since 0000-001 00:00:00Z
-
-S, --epoch -
Show result as a seconds since EPOCH (1970-001 00:00:00Z)
-
-L, --local -
Show result as a 'local' date/time
-
-O, --ordinal -
Show result as an 'ordinal' date/time
-
-W, --week -
Show result as an 'calendar week' date/time
Application Options:
-
-$, --version -
Display software version and exit
-
-V, --verbose -
Increase debug output (may be specified multiple times)
For more information on the ISO 8601 standard, see https://en.wikipedia.org/wiki/ISO_8601
Releases
6 releases since Debian 7 (Wheezy); the text changed 5 times.
--epoch since Debian 9 (Stretch);
--expected since Debian 9 (Stretch);
--help-all since Debian 12 (Bookworm);
--help-commands since Debian 12 (Bookworm);
--help-modifiers since Debian 12 (Bookworm);
--help-output since Debian 13 (Trixie);
--output-as since Debian 13 (Trixie);
--output-to since Debian 13 (Trixie);
--seconds since Debian 9 (Stretch);
-E since Debian 9 (Stretch);
-S since Debian 9 (Stretch);
-h since Debian 12 (Bookworm);
-s since Debian 9 (Stretch).
-? until Debian 11 (Bullseye).