Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102874896
date-diff
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 02:36
Size
335 B
Mime Type
text/x-shellscript
Expires
Thu, Feb 27, 02:36 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24447141
Attached To
R3704 elastic-yarn
date-diff
View Options
#!/bin/bash
PARM=2
if [ $# -ne $PARM ]
then
echo "Wrong # param. Need $PARM got $# "
echo "Usage: ./this end_date(one_string) start_date(one_string)"
exit
fi
D1=$1
D2=$2
#echo $D1
#echo $D2
echo $((`date +'%s' -d "$1" `-`date +'%s' -d "$2"`))
Event Timeline
Log In to Comment