Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
3
Task/Date-manipulation/UNIX-Shell/date-manipulation-1.sh
Normal file
3
Task/Date-manipulation/UNIX-Shell/date-manipulation-1.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
epoch=$(date -d 'March 7 2009 7:30pm EST +12 hours' +%s)
|
||||
date -d @$epoch
|
||||
TZ=Asia/Shanghai date -d @$epoch
|
||||
3
Task/Date-manipulation/UNIX-Shell/date-manipulation-2.sh
Normal file
3
Task/Date-manipulation/UNIX-Shell/date-manipulation-2.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
epoch=$(( $(date -j -f '%B %d %Y %l:%M%p %Z' 'March 7 2009 7:30pm EST' +%s) + 43200 ))
|
||||
date -r $epoch
|
||||
TZ=Australia/Perth date -r $epoch
|
||||
Loading…
Add table
Add a link
Reference in a new issue