Cri-Cri wrote:
On Tue, 11 Jun 2024 20:44:18 +0100, Richard Harnden wrote:
$ date -d @$((16#68686868))
Fri 4 Jul 23:48:56 UTC 2025
Interesting. Bash is a wonderful tool. :)
Agreed. :-)
My Python version also works on that other system...which shall remain
nameless. ;)
My program works on fifty different platforms and I am
currently working to include all timezones, besides +0000 UTC. :-)
Africa is already finished.
$ echo -n '68686868' | go run hex2date.go -tz Africa
Time Zone Time
Africa/Abidjan 2025-07-04 23:48:56 GMT
Africa/Accra 2025-07-04 23:48:56 GMT
Africa/Addis_Ababa 2025-07-05 02:48:56 EAT
Africa/Algiers 2025-07-05 00:48:56 CET
Africa/Asmara 2025-07-05 02:48:56 EAT
Africa/Asmera 2025-07-05 02:48:56 EAT
Africa/Bamako 2025-07-04 23:48:56 GMT
Africa/Bangui 2025-07-05 00:48:56 WAT
Africa/Bangui 2025-07-05 00:48:56 WAT
Africa/Banjul 2025-07-04 23:48:56 GMT
Africa/Bissau 2025-07-04 23:48:56 GMT
Africa/Blantyre 2025-07-05 01:48:56 CAT
Africa/Brazzaville 2025-07-05 00:48:56 WAT
Africa/Bujumbura 2025-07-05 01:48:56 CAT
Africa/Cairo 2025-07-05 02:48:56 EEST
Africa/Casablanca 2025-07-05 00:48:56 +01
Africa/Ceuta 2025-07-05 01:48:56 CEST
Africa/Conakry 2025-07-04 23:48:56 GMT
Africa/Dakar 2025-07-04 23:48:56 GMT
Africa/Dar_es_Salaam 2025-07-05 02:48:56 EAT
Africa/Djibouti 2025-07-05 02:48:56 EAT
Africa/Douala 2025-07-05 00:48:56 WAT
Africa/El_Aaiun 2025-07-05 00:48:56 +01
Africa/Freetown 2025-07-04 23:48:56 GMT
Africa/Gaborone 2025-07-05 01:48:56 CAT
Africa/Harare 2025-07-05 01:48:56 CAT
Africa/Johannesburg 2025-07-05 01:48:56 SAST
Africa/Juba 2025-07-05 01:48:56 CAT
Africa/Kampala 2025-07-05 02:48:56 EAT
Africa/Khartoum 2025-07-05 01:48:56 CAT
Africa/Kigali 2025-07-05 01:48:56 CAT
Africa/Kinshasa 2025-07-05 00:48:56 WAT
Africa/Lagos 2025-07-05 00:48:56 WAT
Africa/Libreville 2025-07-05 00:48:56 WAT
Africa/Lome 2025-07-04 23:48:56 GMT
Africa/Luanda 2025-07-05 00:48:56 WAT
Africa/Lubumbashi 2025-07-05 01:48:56 CAT
Africa/Lusaka 2025-07-05 01:48:56 CAT
Africa/Malabo 2025-07-05 00:48:56 WAT
Africa/Maputo 2025-07-05 01:48:56 CAT
Africa/Maseru 2025-07-05 01:48:56 SAST
Africa/Mbabane 2025-07-05 01:48:56 SAST
Africa/Mogadishu 2025-07-05 02:48:56 EAT
Africa/Monrovia 2025-07-04 23:48:56 GMT
Africa/Nairobi 2025-07-05 02:48:56 EAT
Africa/Ndjamena 2025-07-05 00:48:56 WAT
Africa/Niamey 2025-07-05 00:48:56 WAT
Africa/Nouakchott 2025-07-04 23:48:56 GMT
Africa/Ouagadougou 2025-07-04 23:48:56 GMT
Africa/Porto-Novo 2025-07-05 00:48:56 WAT
Africa/Sao_Tome 2025-07-04 23:48:56 GMT
Africa/Timbuktu 2025-07-04 23:48:56 GMT
Africa/Tripoli 2025-07-05 01:48:56 EET
Africa/Tunis 2025-07-05 00:48:56 CET
Africa/Windhoek 2025-07-05 01:48:56 CAT
-- RegardsStefan