ShopDreamUp AI ArtDreamUp
Deviation Actions
Suggested Deviants
Suggested Collections
You Might Like…
Featured in Groups
Comments40
Join the community to add your comment. Already a deviant? Log In
What do you need Savedday and prevday for?
date --date="today"
date --date="yestergay" I acutally just typo'd that
and also:
date --date="4 days ago"
date --date="next week" ... and whatnot
Also try to avoid process calls ("date") by eg:
DATE="`date +%e:%m::%Y`"
YEAR="${__DATE##*:}"
DAY="${__DATE%%:*}"
MONTH=${__DATE#*:}
MONTH=${MONTH%:*}
If you pass
date --date="${YEAR}-${MONTH}-${I}" +%a
you can omit the [test] for padding demands
date --date="today"
date --date="yestergay" I acutally just typo'd that
and also:
date --date="4 days ago"
date --date="next week" ... and whatnot
Also try to avoid process calls ("date") by eg:
DATE="`date +%e:%m::%Y`"
YEAR="${__DATE##*:}"
DAY="${__DATE%%:*}"
MONTH=${__DATE#*:}
MONTH=${MONTH%:*}
If you pass
date --date="${YEAR}-${MONTH}-${I}" +%a
you can omit the [test] for padding demands