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


Groups > comp.lang.c > #68275

Re: The Lord is getting ready to judge the world

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c
Subject Re: The Lord is getting ready to judge the world
Date 2015-08-25 00:32 +0100
Organization A noiseless patient Spider
Message-ID <87a8tgb6u7.fsf@bsb.me.uk> (permalink)
References <aef7f206-140b-410a-92a6-5070806652dd@googlegroups.com> <299191ad-5c17-4396-a73e-ebaffdf2beed@googlegroups.com> <mrfmf6$urk$1@news.xmission.com> <1b47e079-97da-4467-8123-9c1d882e1209@googlegroups.com> <mrg72m$lt9$1@dont-email.me>

Show all headers | View raw


jacobnavia <jacob@jacob.remcomp.fr> writes:

> Le 24/08/2015 20:38, Malcolm McLean a écrit :
>> The time function gives the number of elapsed seconds since 1 January
>> 1970, GMT.

POSIX says that, but C does not.  C only says that a value of type
time_t can represent a time, but the range and precision are
implementation defined.

<snip>
> The counter will overflow in 2038.

A 32-bit signed int counting seconds since 1970 will, but neither C nor
POSIX nor real world systems limit the range of time_t values to be
32-bit and I've not seen a system with a 32-bit signed time_t type for
some while.  My current system, for example, tells me it's about 3
million days until this date in 9999:

  $ echo $((($(date --date=9999-08-25 +%s) - $(date +%s))/86400))
  2916095

(Given the head post, all this might be simply be a bit of fun, but
there is enough rumour about 2038 that I thought it worth saying
something.)

<snip>
> But even if I survive 2038 and  manage to live a bit later, my world
> will end, since it is written in my book.

Where?  Your Macbook?  I follow only the One True Book, and it wisely
says nothing about time().

-- 
Ben.

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


Thread

The Lord is getting ready to judge the world "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-08-24 08:45 -0700
  Re: The Lord is getting ready to judge the world jt@toerring.de (Jens Thoms Toerring) - 2015-08-24 16:03 +0000
  Re: The Lord is getting ready to judge the world Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-08-24 10:59 -0700
    Re: The Lord is getting ready to judge the world gazelle@shell.xmission.com (Kenny McCormack) - 2015-08-24 18:06 +0000
      Re: The Lord is getting ready to judge the world Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-08-24 11:38 -0700
        Re: The Lord is getting ready to judge the world jacobnavia <jacob@jacob.remcomp.fr> - 2015-08-25 00:51 +0200
          Re: The Lord is getting ready to judge the world Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-08-25 00:32 +0100
    Re: The Lord is getting ready to judge the world "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-08-24 12:14 -0700
      Re: The Lord is getting ready to judge the world Rosario19 <Ros@invalid.invalid> - 2015-08-27 09:22 +0200
    Re: The Lord is getting ready to judge the world "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-08-24 12:42 -0700
      Re: The Lord is getting ready to judge the world Siri Cruz <chine.bleu@yahoo.com> - 2015-08-24 12:54 -0700
        Re: The Lord is getting ready to judge the world jacobnavia <jacob@jacob.remcomp.fr> - 2015-08-25 00:57 +0200
  Re: The Lord is getting ready to judge the world Kelsey Bjarnason <kbjarnason@gmail.com> - 2015-08-24 22:09 +0000
    Re: The Lord is getting ready to judge the world Richard Heathfield <rjh@cpax.org.uk> - 2015-08-24 23:24 +0100
      Re: The Lord is getting ready to judge the world Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-08-25 03:19 -0700
        Re: The Lord is getting ready to judge the world "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-08-25 08:55 -0700
      Re: The Lord is getting ready to judge the world "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-08-25 03:40 -0700
  Re: The Lord is getting ready to judge the world fir <profesor.fir@gmail.com> - 2015-08-24 16:25 -0700
  Re: The Lord is getting ready to judge the world Jens Stuckelberger <Jens_Stuckelberger@nowhere.net> - 2015-08-25 01:12 +0000

csiph-web