Skip to content

Document how to import and use a custom tzif file. #10

Description

@devries

I provided the following response in a discussion, which we agreed should be part of the overall documentation when asked about using your own tzif file:

If you read the file with simplifile.read_bits you can get a bit array, then parse it with the tzif parser.parse command, and you can create a new timezone database using database.new and then add the loaded parsed file using database.add_tzfile giving the time zone a name. After that you can use it like a regular TzDatabase object, you can even start with the database loaded from the operating system and add new timezone definitions to it with the database.add_tzfile function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions