Skip to content

Commit

Permalink
Update 'example program' section
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Apr 23, 2024
1 parent 0242f5f commit b54f0bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parse-zoneinfo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ Once the input lines have been parsed, they must be *interpreted* to form a tabl

The easiest way to do this is with a `TableBuilder`. You can add various lines to the builder, and it will throw an error as soon as it detects that something’s wrong, such as a duplicate or a missing entry. When all the lines have been fed to the builder, you can use the `build` method to produce a `Table` containing fields for the rule, zone, and link lines.

## Example program

The `example` folder of this crate contains a basic parser example.

## Example program
`parse-zoneinfo` is used to produce the data for [`chrono-tz`]. For a full example of its use see [`chrono-tz-build`].

[`chrono-tz-build`]: https://github.com/chronotope/chrono-tz/tree/main/chrono-tz-build

This crate is used to produce the data for the [`zoneinfo-data` crate](https://github.com/rust-datetime/zoneinfo-data). For an example of its use, see the bundled [data crate builder](https://github.com/rust-datetime/zoneinfo-parse/tree/master/data-crate-builder).

0 comments on commit b54f0bc

Please sign in to comment.