0

IE: I'm on Ubuntu 18.04 And looking at /usr/share/zoneinfo, But all the files seem to be written with binary, I would like to get the actual information from the file so any help is greatly appreciated.

(For more info): I have the goal of taking time zone information / history and putting them into a relational database, So I believe learning how to do this might help with that.

5
  • 2
    Wouldn't it be easier to retrieve this data from iana.org/time-zones ? Commented Apr 16, 2020 at 20:20
  • Yes I actually found this data but now when running ./Makefile i get a bunch of errors. Not quite sure what to do there. It says not too much configuration is need and that you may leave some variables empty but throws an error Commented Apr 16, 2020 at 21:11
  • The format has a man page: man -s 5 tzfile. You might need to write some C to extract it. Alternatively. you can od (octal dump) it in multiple formats and pick out the chars, ints and longs in awk. I can try that if you wish. Commented Apr 17, 2020 at 10:03
  • man tzfile notes the file it describes may not be authoritative: "It may only be in glibc just to support the non-glibc-maintained timezone data (which is maintained by some other entity)." Commented Apr 17, 2020 at 15:30
  • 2
    Related: timezone: how to get the rules Commented Apr 18, 2020 at 14:19

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.