Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3302

Re: comparing dates?

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.lang.php
Subject Re: comparing dates?
Date 2011-10-04 15:43 +0100
Organization albasani.net
Message-ID <j6f634$ej$1@news.albasani.net> (permalink)
References <o2og875gpttj3c9h6ilv93mosd88dbujqt@4ax.com> <ee2m8716c3jsarko5vmdn3rbtuitisui8f@4ax.com>

Show all headers | View raw


Michael Joel wrote:
> People weren't thinking code from 1960s would still be in use to 2000
> so you had a "Y2K scare" - didn't really pan out to be a REAL problem.
> Say that somehow humans do keep things going for another 7000 years -
> I don't think comparing a 40 year span to a 7000 year span is
> realistic. Did anyone actually see code from 1960 in 2000? Or is that
> like th eY2K thing mostly stories heard from someone who heard from
> someone?
> 
> Anyway :)
> I ended up deciding to use the time stamp (mktime) to compare dates.
> 
I am sure at some stage there wont be any 32 bit timestamps left...so 
that takes us up to the year 584942419325 AD.


Comfortably longer then the lifetime of the earth.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

comparing dates? Michael Joel <no@please.com> - 2011-10-02 09:00 -0400
  Re: comparing dates? houghi <houghi@houghi.org.invalid> - 2011-10-02 15:43 +0200
  Re: comparing dates? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-02 09:58 -0400
  Re: comparing dates? Doug Miller <doug_at_milmacdotcom@example.com> - 2011-10-02 12:36 -0400
    Re: comparing dates? gordonb.wr5h4@burditt.org (Gordon Burditt) - 2011-10-02 23:54 -0500
      Re: comparing dates? Doug Miller <doug_at_milmacdotcom@example.com> - 2011-10-03 11:50 -0400
        Re: comparing dates? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-03 14:59 -0400
  Re: comparing dates? bobm3@worthless.info - 2011-10-03 20:31 -0400
  Re: comparing dates? Michael Joel <no@please.com> - 2011-10-04 09:27 -0400
    Re: comparing dates? The Natural Philosopher <tnp@invalid.invalid> - 2011-10-04 15:43 +0100
  Re: comparing dates? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-10-06 11:00 +0200

csiph-web