In about 2 hours it’s 1400000000 unix time

28 points by Profpatsch ↗ HN
date +"%s"

20 comments

[ 3.0 ms ] story [ 46.1 ms ] thread
The title of this post seems to be rather out of date.
6000 seconds. That’s still about 2 hours. :)

  package com.example;
  
  /**
   * 	./Main/src/com/example/Main.java
   */
  public class Main {
  	
  	public static void main(String[] args) {
  		System.out.println(System.currentTimeMillis());
  	}
  
  }
Roughly every three years, the "exciting" change will be in 2033 when it rolls over into 2000000000.
The MOST exciting time will be when it hits 2147483647.
I remember having recently survived Y2K having to go through all our code and databases again before UNIX time went from 9 to 10 digits in September of 2001.
Why does anyone care about a decimal milestone? I thought the excitement would be when you flip a big bit.
Unix time is representing seconds, and seconds are a human measurement which use decimal notation.
Seconds are base 60 actually, just like minutes
I thought about that too, but then we would just be encouraging people to watch as the year wraps around at midnight on 1 January. That milestone is usually overshadowed by other things.
It's because I got 10 fingers on my hands. So that kind of makes it interesting, I guess.

  while true; do echo "I'll have a life in $(expr 1400000000 - $(date +"%s")) seconds" && sleep 1; done
For unix people:

watch -n 1 date -u +%s

Hacky shell script...

while [ True ]; do sleep 1; clear; echo $(date +%s); done