Table of Contents
Bash Date cheatsheet
Today
N Days Before
$ date Sun Jun 20 15:23:20 CST 2021 $ date +"%Y%m%d" 20210620
# Linux $ date +%Y%m%d -d "1 day ago" 20210619 # BSD (MacOS) $ date -j -v-1d +"%Y%m%d" 20210619
This project tries to provide a lot of piece of c code that makes life easier.