SHARE
TWEET

New Earth Time on Linux console

jorges Jun 13th, 2011 349 Never
  1. # Calculating New Earth Time (NET) on Linux Console
  2. # http://en.wikipedia.org/wiki/New_Earth_Time
  3. #
  4. # Requirements: date, bc
  5. #
  6. # Explanation:
  7. # -u: takes UTC time
  8. # The rest calculates all minutes of the current day and divides them by 4, as NET hast 360° per day, every grade having 4 minutes.
  9.  
  10. date -u +(%H*60+%M)/4 | bc
RAW Paste Data
Top