Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

runtime=$(date +\%Y\%m\%d\%H\%M\%S)

# -d date arithmetic
# Display the time described by the user friendly string, not by now.
date -d "+5 days"
date -d "+7 weeks +2 days"
date -d "last Wednesday 2 pm"
Source by renenyffenegger.ch #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+9 =