"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/src/ddiff.yuck" (19 Mar 2019, 3297 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 "ddiff.yuck": 0.4.5_vs_0.4.6.

    1 Usage: datediff [OPTION]... DATE/TIME [DATE/TIME]...
    3 Compute duration from DATE/TIME (the reference date/time) to the other
    4 DATE/TIMEs given and print the result as duration.
    5 If the other DATE/TIMEs are omitted read them from stdin.
    7 DATE/TIME can also be one of the following specials
    8   - `now'           interpreted as the current (UTC) time stamp
    9   - `time'          the time part of the current (UTC) time stamp
   10   - `today'         the current date (according to UTC)
   11   - `tomo[rrow]'    tomorrow's date (according to UTC)
   12   - `y[ester]day'   yesterday's date (according to UTC)
   14 Note: The output format of durations (specified via -f) takes all format
   15 specifiers into account, i.e. specifying %M and %S for example prints the
   16 duration in minutes and seconds, whereas specifying %S only prints the duration
   17 in seconds.
   19 See section `The refinement rule' in ddiff(1).
   21   -h, --help                 Print help and exit
   22   -V, --version              Print version and exit
   23   -q, --quiet                Suppress message about date/time and duration
   24                              parser errors and fix-ups.
   25                              The default is to print a warning or the
   26                              fixed up value and return error code 2.
   27                              Also see -S|--skip-illegal to output an empty
   28                              line instead of leaving out the line altogether.
   29   -S, --skip-illegal         Deprecated, use -E|--empty-mode.
   30   -E, --empty-mode           Output empty lines as placeholder for illegal
   31                              input, i.e. parser errors or date/times that
   32                              cannot be subtracted.
   33   -f, --format=STRING        Output format.  This can either be a specifier
   34                                string (similar to strftime()'s FMT) or the name
   35                                of a calendar.
   36   -i, --input-format=STRING...  Input format, can be used multiple times.
   37                                Each date/time will be passed to the input
   38                                format parsers in the order they are given, if a
   39                                date/time can be read successfully with a given
   40                                input format specifier string, that value will
   41                                be used.
   42   -b, --base=DT              For underspecified input use DT as a fallback to
   43                              fill in missing fields.  Also used for ambiguous
   44                              format specifiers to position their range on the
   45                              absolute time line.
   46                              Must be a date/time in ISO8601 format.
   47                              If omitted defaults to the current date/time.
   48   -e, --backslash-escapes    Enable interpretation of backslash escapes in the
   49                                output and input format specifier strings.
   50       --from-locale=LOCALE   Interpret dates on stdin or the command line as
   51                              coming from the locale LOCALE, this would only
   52                              affect month and weekday names as input formats
   53                              have to be specified explicitly.
   54       --from-zone=ZONE       Interpret dates on stdin or the command line as
   55                                coming from the time zone ZONE.