This shows you the differences between two versions of the page.
|
epoch_time_calculations [2012/02/16 10:02] root [Days since Epoch] |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Epoch time calculations ====== | ||
| - | ===== Days since Epoch ===== | ||
| - | |||
| - | echo $(date +%s)/86400 | bc | ||
| - | echo $(($(date +%s)/86400)) | ||
| - | let days=$(date +%s)/86400 ; echo $days | ||
| - | |||
| - | ===== Epoch time on system without GNU date ===== | ||
| - | |||
| - | perl -e 'print time(), "\n" ' | ||