Thread
:
"Days since" app?
View Single Post
lma
2011-02-17 , 13:34
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#
5
For busybox something like this
Code:
expr \( $(date +%s) - $(date +%s -d $PAST) \) / 86400
should do it, where $PAST is in [MMDDhhmm[[CC]YY][.ss]] format (ie 021700002011 for today).
Quote & Reply
|
The Following User Says Thank You to lma For This Useful Post:
Cue
lma
View Public Profile
Send a private message to lma
Find all posts by lma