Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

New Earth Time on Linux console

By: jorges on Jun 13th, 2011  |  syntax: Bash  |  size: 0.32 KB  |  views: 347  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data