Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A computer without COBOL and Fortran is like a piece of chocolate cake without ketchup and mustard.


devel / comp.lang.tcl / Epoch time

SubjectAuthor
* Epoch timesnosniv
`* Epoch timeRalf Fassel
 `- Epoch timesnosniv

1
Epoch time

<24fa509f-2019-425a-b5ec-4cbaf9de7bcan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9889&group=comp.lang.tcl#9889

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:5cc5:b0:4b3:ec9e:79d8 with SMTP id lk5-20020a0562145cc500b004b3ec9e79d8mr30346041qvb.61.1666689191097;
Tue, 25 Oct 2022 02:13:11 -0700 (PDT)
X-Received: by 2002:a05:620a:490d:b0:6e6:b1ad:7a81 with SMTP id
ed13-20020a05620a490d00b006e6b1ad7a81mr24246314qkb.695.1666689190908; Tue, 25
Oct 2022 02:13:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 25 Oct 2022 02:13:10 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=82.1.128.13; posting-account=gstOigoAAADV9pmzZL58qQ436SKV3SBu
NNTP-Posting-Host: 82.1.128.13
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <24fa509f-2019-425a-b5ec-4cbaf9de7bcan@googlegroups.com>
Subject: Epoch time
From: nivpars...@gmail.com (snosniv)
Injection-Date: Tue, 25 Oct 2022 09:13:11 +0000
Content-Type: text/plain; charset="UTF-8"
 by: snosniv - Tue, 25 Oct 2022 09:13 UTC

If I do this:
set z {01/01/1970 00:00:00}
set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S"]

I get -3600 as the result, not zero?

set z {01/01/1970 01:00:00}
does return zero after conversion?

Am I missing something?

Re: Epoch time

<ygao7u0qkhm.fsf@akutech.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9892&group=comp.lang.tcl#9892

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralf...@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: Epoch time
Date: Tue, 25 Oct 2022 12:13:25 +0200
Lines: 20
Message-ID: <ygao7u0qkhm.fsf@akutech.de>
References: <24fa509f-2019-425a-b5ec-4cbaf9de7bcan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net 06PqCDk7dxtjp6rrruumsgduuMJYzhEnxGIdmFuCch1UrHKaI=
Cancel-Lock: sha1:0X8FYeQ5VDOuQKlNQ4TXQ6NLdDA= sha1:aNSbgZctPcKurF0yYyfu5aJSleE=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Tue, 25 Oct 2022 10:13 UTC

* snosniv <nivparsons@gmail.com>
| If I do this:
| set z {01/01/1970 00:00:00}
| set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S"]
>
| I get -3600 as the result, not zero?
>
| set z {01/01/1970 01:00:00}
| does return zero after conversion?
>
| Am I missing something?

Your local time zone. Check the -timezone argument for clock scan.

set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S" -timezone :UTC]
=> 0

https://www.tcl-lang.org/man/tcl8.6/TclCmd/clock.htm#M10

R'

Re: Epoch time

<8110a5de-012a-458b-a0d9-92732d83a4a0n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9958&group=comp.lang.tcl#9958

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:12cc:b0:6fa:2e4d:cfdd with SMTP id e12-20020a05620a12cc00b006fa2e4dcfddmr7022463qkl.375.1667303311790;
Tue, 01 Nov 2022 04:48:31 -0700 (PDT)
X-Received: by 2002:a05:622a:1451:b0:39c:eb3a:ba64 with SMTP id
v17-20020a05622a145100b0039ceb3aba64mr14329263qtx.610.1667303311568; Tue, 01
Nov 2022 04:48:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 1 Nov 2022 04:48:31 -0700 (PDT)
In-Reply-To: <ygao7u0qkhm.fsf@akutech.de>
Injection-Info: google-groups.googlegroups.com; posting-host=82.1.128.13; posting-account=gstOigoAAADV9pmzZL58qQ436SKV3SBu
NNTP-Posting-Host: 82.1.128.13
References: <24fa509f-2019-425a-b5ec-4cbaf9de7bcan@googlegroups.com> <ygao7u0qkhm.fsf@akutech.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8110a5de-012a-458b-a0d9-92732d83a4a0n@googlegroups.com>
Subject: Re: Epoch time
From: nivpars...@gmail.com (snosniv)
Injection-Date: Tue, 01 Nov 2022 11:48:31 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1804
 by: snosniv - Tue, 1 Nov 2022 11:48 UTC

On Tuesday, 25 October 2022 at 11:13:29 UTC+1, Ralf Fassel wrote:
> * snosniv <nivpa...@gmail.com>
> | If I do this:
> | set z {01/01/1970 00:00:00}
> | set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S"]
> >
> | I get -3600 as the result, not zero?
> >
> | set z {01/01/1970 01:00:00}
> | does return zero after conversion?
> >
> | Am I missing something?
> Your local time zone. Check the -timezone argument for clock scan.
>
> set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S" -timezone :UTC]
> => 0
>
> https://www.tcl-lang.org/man/tcl8.6/TclCmd/clock.htm#M10
>
> R'
Ah, yes, we are in British summer time, I'll try again now we're in GMT (or UTC if you prefer).

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor