Computer Old Farts Forum
 help / color / mirror / Atom feed
From: bakul at bitblocks.com (Bakul Shah)
Subject: [COFF] Manipulating time_t values (was: Unix half-billion years old 1985)
Date: Mon, 04 Nov 2019 15:50:18 -0800	[thread overview]
Message-ID: <20191104235025.C0548156E80B@mail.bitblocks.com> (raw)
In-Reply-To: Your message of "Tue, 05 Nov 2019 10:00:55 +1100." <20191104230055.GH68439@eureka.lemis.com>

On Tue, 05 Nov 2019 10:00:55 +1100 Greg 'groggy' Lehey <grog at lemis.com> wrote:
>
> [Moved to COFF]
>
> On Monday,  4 November 2019 at 16:59:22 -0500, John P. Linderman wrote:
> > I wrote a near-trivial "timestamp" command to make it easier to do time
> > arithmetic
> >
> > TZ=udt timestamp
> > 119 11 04 21 50 06 18204 1572904206 Mon Nov  4 21:50:06 2019
> > TZ=udt timestamp 0
> > 70 01 01 00 00 00 0 0 Thu Jan  1 00:00:00 1970
> > ...
>
> FreeBSD has this functionality in date(1):
>
>  TZ=UTC date -r 500000000
>  Tue  5 Nov 1985 00:53:20 UTC
>  TZ=UTC date -r 1500000000
>  Fri 14 Jul 2017 02:40:00 UTC

Shouldn't that be 
    Tue  5 Nov 1985 00:52:57 UTC
    Fri 14 Jul 2017 02:39:23 UTC
given that this is UTC (which is 37 seconds behind TAI)?

Sorry :-)


  reply	other threads:[~2019-11-04 23:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.BSF.2.21.9999.1911050805570.11612@aneurin.horsfall.org>
     [not found] ` <alpine.BSF.2.21.9999.1911050809230.11612@aneurin.horsfall.org>
     [not found]   ` <CAC0cEp_WX_aXRWnHcat8ZYbdvf8aeudGoU_SA2+Nj0Nc7v9sKA@mail.gmail.com>
2019-11-04 23:00     ` grog
2019-11-04 23:50       ` bakul [this message]
2019-11-05  3:07         ` imp
2019-11-05 11:13           ` dot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191104235025.C0548156E80B@mail.bitblocks.com \
    --to=coff@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).