Re: [OT] Unix Time Stamp - Independence Day 2025 :-)

Liste des GroupesRevenir à s crypt 
Sujet : Re: [OT] Unix Time Stamp - Independence Day 2025 :-)
De : pollux (at) *nospam* tilde.club (Stefan Claas)
Groupes : sci.crypt
Date : 16. Jun 2024, 08:43:19
Autres entêtes
Organisation : ℭ𝔥𝔦𝔣𝔣𝔯𝔢𝔭𝔲𝔫𝔨𝔰
Message-ID : <v4m52o$4p1d$1@i2pn2.org>
References : 1 2 3 4 5 6 7 8 9
Stefan Claas wrote:

Cri-Cri wrote:
 
On Thu, 13 Jun 2024 20:33:51 +0200, Stefan Claas wrote:
 
No ... but here is a bash script, written by Bing AI, which allows you
to enter with -h hex values, or with -d decimal values and prints to
stdout all timezones. :-)
 
A similar thing for Python:
https://pynative.com/list-all-timezones-in-python/
 
With a little work I'm sure it's possible to do something like that AI
thing. Just for fun, here is the number of timezones it has listed:
 
len(pytz.all_timezones)
596
 
Interesting, my program has 597.
 
Many are, apparently, not even in use. :)  I suppose they are there for
historical reasons. Possibly future use.
 
I don't know. I just included all of them. ;-)
 
https://github.com/stefanclaas/hex2date
 
I have another program, which calculates the weekdays of your birthdays. :-)

$ bdates -tz Europe/Berlin 2020-xx-xx 2030-xx-xx
The birthday in the year 2020 was on a Monday
The birthday in the year 2021 was on a Tuesday
The birthday in the year 2022 was on a Wednesday
The birthday in the year 2023 was on a Thursday
The birthday in the year 2024 was on a Saturday
The birthday in the year 2025 is on a Sunday
The birthday in the year 2026 is on a Monday
The birthday in the year 2027 is on a Tuesday
The birthday in the year 2028 is on a Thursday
The birthday in the year 2029 is on a Friday
The birthday in the year 2030 is on a Saturday
and so on.

https://github.com/stefanclaas/bdate

I wonder what else can be done with the Linux 'date'
command. :-)

--
Regards
Stefan


Date Sujet#  Auteur
11 Jun 24 * [OT] Unix Time Stamp - Independence Day 2025 :-)11Stefan Claas
11 Jun 24 `* Re: [OT] Unix Time Stamp - Independence Day 2025 :-)10Richard Harnden
11 Jun 24  +- Re: [OT] Unix Time Stamp - Independence Day 2025 :-)1Chris M. Thomasson
12 Jun 24  `* Re: [OT] Unix Time Stamp - Independence Day 2025 :-)8Stefan Claas
13 Jun 24   `* Re: [OT] Unix Time Stamp - Independence Day 2025 :-)7Stefan Claas
13 Jun 24    +* Re: [OT] Unix Time Stamp - Independence Day 2025 :-)2Stefan Claas
15 Jun 24    i`- Re: [OT] Unix Time Stamp - Independence Day 2025 :-)1Stefan Claas
15 Jun 24    `* Re: [OT] Unix Time Stamp - Independence Day 2025 :-)4Stefan Claas
16 Jun 24     `* Re: [OT] Unix Time Stamp - Independence Day 2025 :-)3Stefan Claas
17 Jun 24      +- Re: [OT] Unix Time Stamp - Independence Day 2025 :-)1Stefan Claas
12 Jul 24      `- Re: [OT] Unix Time Stamp - Independence Day 2025 :-)1Jakob Bohm

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal