bash function epoch_days

I needed to calculate days since the epoch. I wrote up a quick bash function to do the math for me.

function epoch_days() { 
    time=$(date --utc +%s);
    day=86400;
    days=$(( $time / $day ));

    echo $days;
}


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.145.92.98
To prevent spam please submit by clicking the kitten: