"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/src/dconv.yuck" (19 Mar 2019, 3100 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "dconv.yuck": 0.4.5_vs_0.4.6.

    1 Usage: dateconv [OPTION]... [DATE/TIME]...
    3 Convert DATE/TIMEs between calendrical systems.
    4 If DATE/TIME is omitted date/times are read from stdin.
    6 DATE/TIME can also be one of the following specials
    7   - `now'           interpreted as the current (UTC) time stamp
    8   - `time'          the time part of the current (UTC) time stamp
    9   - `today'         the current date (according to UTC)
   10   - `tomo[rrow]'    tomorrow's date (according to UTC)
   11   - `y[ester]day'   yesterday's date (according to UTC)
   14   -h, --help                 Print help and exit
   15   -V, --version              Print version and exit
   16   -q, --quiet                Suppress message about date/time and duration
   17                              parser errors and fix-ups.
   18                              The default is to print a warning or the
   19                              fixed up value and return error code 2.
   20   -f, --format=STRING        Output format.  This can either be a specifier
   21                                string (similar to strftime()'s FMT) or the name
   22                                of a calendar.
   23   -i, --input-format=STRING...  Input format, can be used multiple times.
   24                                Each date/time will be passed to the input
   25                                format parsers in the order they are given, if a
   26                                date/time can be read successfully with a given
   27                                input format specifier string, that value will
   28                                be used.
   29   -b, --base=DT              For underspecified input use DT as a fallback to
   30                              fill in missing fields.  Also used for ambiguous
   31                              format specifiers to position their range on the
   32                              absolute time line.
   33                              Must be a date/time in ISO8601 format.
   34                              If omitted defaults to the current date/time.
   35   -e, --backslash-escapes    Enable interpretation of backslash escapes in the
   36                                output and input format specifier strings.
   37   -S, --sed-mode             Copy parts from the input before and after a
   38                                matching date/time.
   39                                Note that all occurrences of date/times within a
   40                                line will be processed.
   41   -E, --empty-mode           Empty lines that cannot be parsed.
   42       --locale=LOCALE        Format results according to LOCALE, this would only
   43                              affect month and weekday names.
   44       --from-locale=LOCALE   Interpret dates on stdin or the command line as
   45                              coming from the locale LOCALE, this would only
   46                              affect month and weekday names as input formats
   47                              have to be specified explicitly.
   48       --from-zone=ZONE       Interpret dates on stdin or the command line as
   49                                coming from the time zone ZONE.
   50   -z, --zone=ZONE            Convert dates printed on stdout to time zone ZONE,
   51                                default: UTC.