User Tools

Site Tools


epoch_time_calculations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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"​ ' 
epoch_time_calculations.1329386524.txt.gz ยท Last modified: 2012/02/16 10:02 by root