Sujet : Re: [OT] Unix Time Stamp - Independence Day 2025 :-)
De : pollux (at) *nospam* tilde.club (Stefan Claas)
Groupes : sci.cryptDate : 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/bdateI wonder what else can be done with the Linux 'date'
command. :-)
-- RegardsStefan