Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and may be fixed. Will keep monitoring.


devel / comp.lang.xharbour / Re: Unix Timestamp

SubjectAuthor
* Unix TimestampEduardo Motta
`- Unix TimestampEnrico Maria Giordano

1
Re: Unix Timestamp

<26f70cf3-0ce9-4803-b95b-2dbfaed8152an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:1991:: with SMTP id bm17mr29252667qkb.459.1638742476299;
Sun, 05 Dec 2021 14:14:36 -0800 (PST)
X-Received: by 2002:a05:6214:23c9:: with SMTP id hr9mr32953950qvb.83.1638742475922;
Sun, 05 Dec 2021 14:14:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sun, 5 Dec 2021 14:14:35 -0800 (PST)
In-Reply-To: <46dba122-bad2-4949-98e7-4026bf467f1fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=179.93.80.107; posting-account=ciYPUgkAAACP7h-GihPdeC47vCOdy23j
NNTP-Posting-Host: 179.93.80.107
References: <0a91c09f-d9de-4b72-85f8-a0e49ba3d5f9n@googlegroups.com>
<rtsend$ouk$1@dont-email.me> <46dba122-bad2-4949-98e7-4026bf467f1fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <26f70cf3-0ce9-4803-b95b-2dbfaed8152an@googlegroups.com>
Subject: Re: Unix Timestamp
From: edua...@emotta.com.br (Eduardo Motta)
Injection-Date: Sun, 05 Dec 2021 22:14:36 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 29
 by: Eduardo Motta - Sun, 5 Dec 2021 22:14 UTC

Enrico, I found a bug. The source code below has been corrected.

before correction:
UTOD("1638497277000-0300") // 03/12/2021 -1:07

after correction:
UTOD("1638497277000-0300") // 02/12/2021 23:07

New code:

STATIC FUNCTION UTOD( cSer )
LOCAL nSec := INT( VAL( cSer ) / 1000 )
LOCAL nMin := INT( nSec / 60 )
LOCAL nHou := INT( nMin / 60 )
LOCAL nDay := INT( nHou / 24 )
LOCAL nZon := VAL( RIGHT( cSer, 5 ) ) / 100

LOCAL cDat := DTOC( STOD( "19700101" ) + nDay )
Local nHours := nHou - nDay * 24 + nZon
LOCAL cMin := STRZERO( nMin - nHou * 60, 2 )

Local dDate := CtoD(cDat)

If nHours < 0
dDate--
nHours = nHours + 24
EndIf

RETURN DtoC(dDate) + " " + StrZero(nHours, 2) + ":" + cMin

Re: Unix Timestamp

<sojed8$6ej$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Unix Timestamp
Date: Sun, 5 Dec 2021 23:27:48 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <sojed8$6ej$1@dont-email.me>
References: <0a91c09f-d9de-4b72-85f8-a0e49ba3d5f9n@googlegroups.com>
<rtsend$ouk$1@dont-email.me>
<46dba122-bad2-4949-98e7-4026bf467f1fn@googlegroups.com>
<26f70cf3-0ce9-4803-b95b-2dbfaed8152an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Dec 2021 22:27:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4433cac32ace04df1b92025d618cf1e7";
logging-data="6611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+11hWdbIjVZd0QTqOdOTJq"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:xR09azsFg8c8iEq/WGkBD1PPAZc=
In-Reply-To: <26f70cf3-0ce9-4803-b95b-2dbfaed8152an@googlegroups.com>
 by: Enrico Maria Giordan - Sun, 5 Dec 2021 22:27 UTC

Il 05/12/2021 23:14, Eduardo Motta ha scritto:

> Enrico, I found a bug. The source code below has been corrected.

Thank you.

EMG

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor