Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

datetime calculation in shell

date --date "07/01/2021 +1 hours" +'%d/%m/%Y %H:%M:%S'
Comment

datetime calculation in shell

$ date --date 'March 1, 2015 +7 days'
Sun Mar  8 00:00:00 MST 2015
$ date --date 'March 1, 2015 -1 year'
Sat Mar  1 00:00:00 MST 2014
$ date --date 'March 1, 2015 +12 days +12 hours +15 minutes'
Fri Mar 13 12:15:00 MST 2015
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: create new partion linux 
Shell :: laravel install lysystem-aws-s3 
Shell :: asdf local 
Shell :: ideavim reload vimrc 
Shell :: perfect git commit 
Shell :: git shows folder but wont open 
Shell :: install brave fedora 
Shell :: count the number of unique elements in a column bash 
Shell :: gcloud change project 
Shell :: bash loop over files in file 
Shell :: "git reset –- soft head^" 
Shell :: nodemon watch file run command 
Shell :: loading json in js 
Shell :: msiexec wait for completion powershell 
Shell :: bash string before substring 
Shell :: install talib linux server 
Shell :: apache version mac 
Shell :: aws ls wildcard 
Shell :: Install psycopg2-binary on linux 
Shell :: git clone with submodules 
Shell :: git add submodule 
Shell :: switch to previous branch git 
Shell :: clear ram cache linux 
Shell :: assign variable with sed not working 
Shell :: how to install expo cli on windows 
Shell :: arch linux fonts 
Shell :: vite starting code 
Shell :: git search all branches 
Shell :: how to install .deb in terminal 
Shell :: remove .svn recursively linux 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =