Search Results

Search: Posts Made By: chrz
Forum: Linux 12-27-2016
1,560
Posted By chrz
Thank you so much, this works fine: date -d...
Thank you so much, this works fine: date -d "$YESTERDAY" +"%s000"

I have never thought that I will have to ask for help on such a noble forum about date command ;)

Regards,
chrz
Forum: Linux 12-27-2016
1,560
Posted By chrz
Problem with date command
Hello,

Can anyone have an idea what is wrong with this code:


$ YESTERDAY=$(date -d "yesterday" '+%Y-%m-%d 07:00:00')
$ echo $YESTERDAY
2016-12-26 07:00:00
$ date -d '($YESTERDAY)' +"%s000"...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy