Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Adapt. Enjoy. Survive.


devel / comp.lang.forth / Re: date

SubjectAuthor
* datenone
`* Re: dateZbig
 +* Re: datenone
 |`- Re: dateZbig
 `- Re: datejan Coombs

1
date

<nnd$43f6e4a1$78a280c7@8fda2922627503d9>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24985&group=comp.lang.forth#24985

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: date
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$43f6e4a1$78a280c7@8fda2922627503d9>
Organization: KPN B.V.
Date: Fri, 20 Oct 2023 15:09:43 +0200
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 27
Injection-Date: Fri, 20 Oct 2023 15:09:43 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1555
 by: none - Fri, 20 Oct 2023 13:09 UTC

Infuriated by the 3 page instructions of the Linux date
I decided to write my own.
The worst problem is that there is no canonical date format.
Look at 'man co' option -d . There is a plethora of options
to format the date. It is a day's work to find out whether
they agree.

--------8< ---------------------------------------
WANT TIME&DATE .FORMAT
: doit TIME&DATE "%d /%d /%d -%d :%d :%d" .FORMAT ;
--------8< ---------------------------------------

lina -c sdate.frt

/home/albert/PROJECT/ciforths/ciforth
~/PROJECT/ciforths/ciforth: sdate
2023/10/20-12:56:4~/PROJECT/ciforths/ciforth: dd=`sdate`
~/PROJECT/ciforths/ciforth: echo moments ago the time was $dd
moments ago the time was 2023/10/20-12:56:15

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: date

<5dd168fa-4461-450d-9cd0-ac1579cea9cfn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24986&group=comp.lang.forth#24986

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5555:0:b0:41b:aeda:d186 with SMTP id o21-20020ac85555000000b0041baedad186mr35052qtr.4.1697807971133;
Fri, 20 Oct 2023 06:19:31 -0700 (PDT)
X-Received: by 2002:a05:6808:1586:b0:3ad:f3e6:66fe with SMTP id
t6-20020a056808158600b003adf3e666femr645813oiw.4.1697807970803; Fri, 20 Oct
2023 06:19:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!weretis.net!feeder8.news.weretis.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.forth
Date: Fri, 20 Oct 2023 06:19:30 -0700 (PDT)
In-Reply-To: <nnd$43f6e4a1$78a280c7@8fda2922627503d9>
Injection-Info: google-groups.googlegroups.com; posting-host=83.22.133.159; posting-account=cxuXKwoAAABQpPOMD55A9IPz7pPrw6ml
NNTP-Posting-Host: 83.22.133.159
References: <nnd$43f6e4a1$78a280c7@8fda2922627503d9>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5dd168fa-4461-450d-9cd0-ac1579cea9cfn@googlegroups.com>
Subject: Re: date
From: zbigniew2011@gmail.com (Zbig)
Injection-Date: Fri, 20 Oct 2023 13:19:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Zbig - Fri, 20 Oct 2023 13:19 UTC

> Infuriated by the 3 page instructions of the Linux date
> I decided to write my own.
> The worst problem is that there is no canonical date format.

There are conventions:

— if you use dots as separator, the date should have DD.MM.YYYY format
— if slashes — the „American” format MM/DD/YYYY
— if dashes — the „international” format: YYYY-MM-DD
— if using Roman digits for the month, the date parts are separated
by spaces and no leading zero for days is used, like this: 9 X 2023

One problem may be with British format:: DD/MM/YYYY — they
also use slashes.

Re: date

<nnd$5e119b6d$4b91b60b@6d8f35107c88f606>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24987&group=comp.lang.forth#24987

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: date
References: <nnd$43f6e4a1$78a280c7@8fda2922627503d9> <5dd168fa-4461-450d-9cd0-ac1579cea9cfn@googlegroups.com>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$5e119b6d$4b91b60b@6d8f35107c88f606>
Organization: KPN B.V.
Date: Fri, 20 Oct 2023 16:05:50 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 34
Injection-Date: Fri, 20 Oct 2023 16:05:50 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: none - Fri, 20 Oct 2023 14:05 UTC

In article <5dd168fa-4461-450d-9cd0-ac1579cea9cfn@googlegroups.com>,
Zbig <zbigniew2011@gmail.com> wrote:
>> Infuriated by the 3 page instructions of the Linux date
>> I decided to write my own.
>> The worst problem is that there is no canonical date format.
>
>There are conventions:
>
>— if you use dots as separator, the date should have DD.MM.YYYY format
>— if slashes — the „American” format MM/DD/YYYY
>— if dashes — the „international” format: YYYY-MM-DD
>— if using Roman digits for the month, the date parts are separated
> by spaces and no leading zero for days is used, like this: 9 X 2023
>
>One problem may be with British format:: DD/MM/YYYY — they
>also use slashes.

The problem is that 'date' wants to accomodate all conventions with a
plethora of options, a lot of more than you mentions here.

So I think you donot appreciate the problem.
For an exercise, using linux 'date'
- find out what options do you need for the American format
- find out what options do you need for the international format.

Not even talking about seconds here.

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: date

<f9eff7e1-7fb2-4765-b897-2ba6c82fe05fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24988&group=comp.lang.forth#24988

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:1873:b0:66c:ffdd:8d6f with SMTP id eh19-20020a056214187300b0066cffdd8d6fmr42698qvb.3.1697814332867;
Fri, 20 Oct 2023 08:05:32 -0700 (PDT)
X-Received: by 2002:a05:620a:8d0a:b0:778:914e:fb60 with SMTP id
rb10-20020a05620a8d0a00b00778914efb60mr36661qkn.11.1697814332644; Fri, 20 Oct
2023 08:05:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.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.forth
Date: Fri, 20 Oct 2023 08:05:32 -0700 (PDT)
In-Reply-To: <nnd$5e119b6d$4b91b60b@6d8f35107c88f606>
Injection-Info: google-groups.googlegroups.com; posting-host=83.22.133.159; posting-account=cxuXKwoAAABQpPOMD55A9IPz7pPrw6ml
NNTP-Posting-Host: 83.22.133.159
References: <nnd$43f6e4a1$78a280c7@8fda2922627503d9> <5dd168fa-4461-450d-9cd0-ac1579cea9cfn@googlegroups.com>
<nnd$5e119b6d$4b91b60b@6d8f35107c88f606>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f9eff7e1-7fb2-4765-b897-2ba6c82fe05fn@googlegroups.com>
Subject: Re: date
From: zbigniew2011@gmail.com (Zbig)
Injection-Date: Fri, 20 Oct 2023 15:05:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 4
 by: Zbig - Fri, 20 Oct 2023 15:05 UTC

I didn't mean Linux; I meant what you can use in ciforth
having your own 'date' function working just fine. If I had
to write my own 'date' function I wouldn't care what Linux
„thinks” about that.
…or maybe indeed I didn't get in full what you mean.

Re: date

<20231020182024.0acf6fa9@t530>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24991&group=comp.lang.forth#24991

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jan4comp.lang.forth@murray-microft.co.uk (jan Coombs)
Newsgroups: comp.lang.forth
Subject: Re: date
Date: Fri, 20 Oct 2023 18:20:24 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20231020182024.0acf6fa9@t530>
References: <nnd$43f6e4a1$78a280c7@8fda2922627503d9>
<5dd168fa-4461-450d-9cd0-ac1579cea9cfn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="09ca7d38feeb3f9373823dec794d0eb4";
logging-data="1283211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RKCQexFL4QbkZHtbR+CH7dZYfXhg5x7w="
Cancel-Lock: sha1:MVmns/R2NjFXeRv8PWIbTZF6p7w=
X-Newsreader: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: jan Coombs - Fri, 20 Oct 2023 17:20 UTC

On Fri, 20 Oct 2023 06:19:30 -0700 (PDT)
Zbig <zbigniew2011@gmail.com> wrote:

> > Infuriated by the 3 page instructions of the Linux date
> > I decided to write my own.
> > The worst problem is that there is no canonical date format.
>
> There are conventions:
>
> — if you use dots as separator, the date should have DD.MM.YYYY format
> — if slashes — the „American” format MM/DD/YYYY
> — if dashes — the „international” format: YYYY-MM-DD
> — if using Roman digits for the month, the date parts are separated
> by spaces and no leading zero for days is used, like this: 9 X 2023
>
> One problem may be with British format:: DD/MM/YYYY — they
> also use slashes.

YYYY-MM-DD ISO 8601 (EN 28601)

YYYY-MM-DD_hhmm ?

Write the whole thing backwards as we do with most other numbers

Jan Coombs
--

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor