"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/src/dseq.yuck" (19 Mar 2019, 4323 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.

    1 Usage: dateseq [OPTION]... FIRST [[INCREMENT] LAST]
    3 Generate a sequence of date/times from FIRST to LAST, optionally in steps of
    4 INCREMENT (which defaults to `1d').
    6 If LAST is omitted it defaults to `now' if FIRST is a date/time, or `today' if
    7 FIRST is a date, or `time' if FIRST is a time.
    9 The values of FIRST and LAST are always inclusive and no date/times before
   10 FIRST and no date/times after LAST will be printed.
   12 Negative INCREMENTs must be given, i.e. if FIRST is newer than LAST.
   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       --locale=LOCALE        Format results according to LOCALE, this would only
   38                              affect month and weekday names.
   39       --from-locale=LOCALE   Interpret dates on stdin or the command line as
   40                              coming from the locale LOCALE, this would only
   41                              affect month and weekday names as input formats
   42                              have to be specified explicitly.
   43   -s, --skip=STRING...          Skip weekdays specified by STRING.
   44                                STRING can be a single weekday (Mon, Tue, etc.),
   45                                and to skip several days the --skip option can
   46                                be used multiple times.
   47                                STRING can also be a comma-separated list of
   48                                weekday names, or `ss' to skip weekends
   49                                (sat+sun) altogether.
   50                                STRING can also contain date ranges like `mo-we'
   51                                for monday to wednesday.
   52       --alt-inc=STRING       Alternative increment to use when a date is hit
   53                                that is skipped as per --skip.
   54                                This increment will be applied until a
   55                                non-skipped date is reached.
   56                                The special case `0' (default) deactivates
   57                                alternative incrementing.  A useful value could
   58                                be `1d' for increasing sequences and `-1d' for
   59                                decreasing sequences, so if a skipped date is
   60                                encountered the next non-skipped date
   61                                after/before will be used.
   62       --compute-from-last    Compute a start value from LAST using INCREMENT.
   63                                This option has an effect only when INCREMENT is
   64                                not a divisor of the duration between FIRST and
   65                                LAST.  In such case, an alternative FIRST will
   66                                be computed by consecutively subtracting
   67                                INCREMENT from LAST until FIRST is hit or
   68                                crossed.