공부
[Sh] date -d '+1 hour' '+%Y %m%d%H' (yyyyMMddHH=`date +%Y%m%d%H`) `date +%Y%m%d -d '1 days ago'`
승가비
2021. 3. 1. 17:38
728x90
yyyyMMddHH=`date +%Y%m%d%H`
yyyyMMddHH=_yesterday`date +%Y%m%d -d '1 days ago'`
stackoverflow.com/questions/16142973/add-some-specific-time-while-using-the-linux-command-date
Add some specific time while using the linux command "date"
In linux, date can help me to print the current time. If want to print the current time + 1 hour, what option should I give?
stackoverflow.com
728x90