"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/info/dzone.texi" (19 Mar 2019, 3279 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:

Caution: As a special service "Fossies" has tried to format the requested Texinfo source page into HTML format but that may be not always succeeeded perfectly. Alternatively you can here view or download the uninterpreted Texinfo source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "dzone.texi": 0.4.3_vs_0.4.4.

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1 dzone

dzone may be invoked with the following command-line options:

Usage: datezone [OPTION]... [ZONENAME]... [DATE/TIME]...

Convert DATE/TIMEs between timezones.
If DATE/TIME is omitted, it defaults to `now'.

DATE/TIME can also be one of the following specials
  - `now'           interpreted as the current (UTC) time stamp
  - `time'          the time part of the current (UTC) time stamp
  - `today'         the current date (according to UTC)
  - `tomo[rrow]'    tomorrow's date (according to UTC)
  - `y[ester]day'   yesterday's date (according to UTC)

When DATE/TIME is a date (i.e. the time component is omitted)
the result will show the timezone offset at the end of that day.

When DATE/TIME is a time (i.e. the date component is omitted)
the conversion takes place on the date as specified by --base|-b,
by default the current date.

  -h, --help            display this help and exit
  -V, --version         output version information and exit
  -q, --quiet           Suppress message about date/time or zonename
                        parser errors and fix-ups.
                        The default is to print a warning or the
                        fixed up value and return error code 2.
  -b, --base=DT         For underspecified input use DT as a fallback to
                        fill in missing fields.  Also used for ambiguous
                        format specifiers to position their range on the
                        absolute time line.
                        Must be a date/time in ISO8601 format.
                        If omitted defaults to the current date/time.
  -i, --input-format=STRING...
                        Input format, can be used multiple times.
                        Each date/time will be passed to the input
                        format parsers in the order they are given, if a
                        date/time can be read successfully with a given
                        input format specifier string, that value will
                        be used.
                        Interpret dates on stdin or the command line as
                        coming from the locale LOCALE, this would only
                        affect month and weekday names as input formats
                        have to be specified explicitly.
      --from-zone=ZONE  Interpret dates on stdin or the command line as
                        coming from the time zone ZONE.
      --next            Show next transition from/to DST.
      --prev            Show previous transition from/to DST.

Report bugs to https://github.com/hroptatyr/dateutils/issues

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.1 Examples

$ dzone 2012-03-04T12:04:11
$ dzone Europe/Berlin 2012-03-04T12:04:11
2012-03-04T13:04:11+01:00	Europe/Berlin
$ dzone 2012-03-04T12:04:11 UTC
2012-03-04T12:04:11+00:00	UTC
$ dzone Europe/Berlin Australia/Sydney 2012-01-01T14:04:00 2012-05-14T12:04:00
2012-01-01T15:04:00+01:00	Europe/Berlin
2012-01-02T01:04:00+11:00	Australia/Sydney
2012-05-14T14:04:00+02:00	Europe/Berlin
2012-05-14T22:04:00+10:00	Australia/Sydney

[Top] [Contents] [Index] [ ? ]

About This Document

This document was generated on March 19, 2019 using texi2html.

The buttons in the navigation panels have the following meaning:

Button Name Go to From 1.2.3 go to
[ << ] FastBack Beginning of this chapter or previous chapter 1
[ < ] Back Previous section in reading order 1.2.2
[ Up ] Up Up section 1.2
[ > ] Forward Next section in reading order 1.2.4
[ >> ] FastForward Next chapter 2
[Top] Top Cover (top) of document  
[Contents] Contents Table of contents  
[Index] Index Index  
[ ? ] About About (help)  

where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:

This document was generated on March 19, 2019 using texi2html.