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