Giter Site home page Giter Site logo

dateseq.sh's Introduction

dateseq.sh

Like seq but for dates and times.

dateseq.sh

dateseq.sh 0.1 -- print a sequence of dates and times

Usage: dateseq.sh [OPTION]... LAST
       dateseq.sh [OPTION]... FIRST LAST
       dateseq.sh [OPTION]... FIRST INCREMENT LAST

Options:
    -f    FORMAT [default: %Y%m%d%H%M]
    -i    INCREMENT <value><unit> (y, M, w, m, d, h, m, s) [default: 1d]
    -v    VERBOSE

FIRST/LAST is a datetime with date in the format YYYYMMDD or YYYY-MM-DD
and time in the format HMS, HM, H:M, or H:M:S (if used).
If FIRST is omitted, it defaults to todays date at midnight.
If INCREMENT is omitted, it defaults to 1 day (1d). INCREMENT is always
positive even if FIRST is smaller than LAST.
FORMAT is in the GNU date format and defaults to %Y%m%d%H%M.
INCREMENT supports: 2y 4M 2w 1d 6h 15m 30s, for year, month, week, day,
hour, minute, or second.

Examples:
    ./dateseq.sh 20160916
    ./dateseq.sh 20160916 20161010
    ./dateseq.sh -f %Y-%m-%d\ %H:%M:%S 20160916\ 0730 30m 20160916\ 1230
    ./dateseq.sh -f %s 20160916\ 0730 2m 20160916\ 0830

dateseq.sh's People

Contributors

thomasboevith avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.