Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

datetime calculation in shell

$ date --date 'last Monday'
Mon Sep 10 00:00:00 MST 2018
$ date --date 'next Monday'
Mon Sep 17 00:00:00 MST 2018
Source by www.linuxjournal.com #
 
PREVIOUS NEXT
Tagged: #datetime #calculation #shell
ADD COMMENT
Topic
Name
3+5 =