[erlang-questions] A localtime from UTC

bengt <>
Mon Sep 9 15:28:15 CEST 2019


Greetings,

I have Erlang datetime (UTC) and need to provide MET to a customer.
Searching located qdate(1) and that pointed me to localtime(2) and 
ezic(3).

Are there more alternatives?
Does anybody have experience with these and recommendations?

Since localtime is younger I added it as a dependency and it built. But the database is a few years old(4) and when I try to build new hlr files from a new db (manually, since I do not see any way to get it automatically at build time, please correct me if I am wrong) I get Perl errors(5).

Best Wishes,
bengt
(1) https://github.com/choptastic/qdate
(2) https://github.com/drfloob/ezic
(3) https://github.com/dmitryme/erlang_localtime
(4) From 2013i
(5) make

curl -O "ftp://ftp.iana.org/tz/tzdata-latest.tar.gz <ftp://ftp.iana.org/tz/tzdata-latest.tar.gz>"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 10  375k   10 41760    0     0  22343      0  0:00:17  0:00:01  0:00:16 22331
 90  375k   90  339k    0     0   119k      0  0:00:03  0:00:02  0:00:01  119k
100  375k  100  375k    0     0   124k      0  0:00:03  0:00:03 --:--:--  124k
mkdir tzdata && cd tzdata && tar xzf ../tzdata-latest.tar.gz
TZ_VERSION=`perl -n -e 'm/^VERSION\s*=\s*(\S+)/ and print $1;' tzdata/Makefile`; \
./tz-erl --version $TZ_VERSION -o tzout tzdata/africa tzdata/antarctica tzdata/asia tzdata/australasia tzdata/backward tzdata/etcetera tzdata/europe tzdata/northamerica tzdata/southamerica
no match for 5 in rule Rule	Morocco	2019	only	-	May	5	3:00	-1:00	- at ./tz-erl line 219, <tzdata/africa> line 939.
no match for 9 in rule Rule	Morocco	2019	only	-	Jun	9	2:00	0	- at ./tz-erl line 219, <tzdata/africa> line 940.
Day '33' out of range 1..31 at ./tz-erl line 488.
Makefile:5: recipe for target 'tzout' failed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190909/d6501ae2/attachment.html>


More information about the erlang-questions mailing list