datefmt

format unix timestamps over stdin
git clone git://jb55.com/datefmt
Log | Files | Refs | README | LICENSE

README (767B)


      1 usage: datefmt [OPTION...] [FORMAT]
      2 
      3 format unix timestamps from stdin
      4 
      5   -a, --after <timestamp>  only format timestamps after this date (default: 2000-01-01Z)
      6   -b, --before <timestamp> only format timestamps before this date 
      7   -f, --future             only format timestamps in the future 
      8   -p, --past               only format timestamps in the past 
      9       --version	           display version information and exit 
     10   -m, --ms	           interpret timestamps as milliseconds instead of seconds 
     11   -r, --relative           custom format: show age of timestamp (1h, 2d, etc) 
     12 
     13   FORMAT
     14     a strftime format string, defaults to '%F %R'
     15 
     16   EXAMPLE
     17     datefmt --after $(date -d yesterday +%s) %R < spreadsheet.csv
     18 
     19   Created By: William Casarin <https://jb55.com>