Advertisement
jorges

New Earth Time on Linux console

Jun 13th, 2011
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement