View Single Post
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).
 

The Following User Says Thank You to lma For This Useful Post: