-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge history from zoneinfo-parse
before fork
#13
Commits on Sep 26, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 26608e4 - Browse repository at this point
Copy the full SHA 26608e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78d70de - Browse repository at this point
Copy the full SHA 78d70deView commit details -
The equals signs are included in the day-of-transition capture sign.
Configuration menu - View commit details
-
Copy full SHA for 0fcafc8 - Browse repository at this point
Copy the full SHA 0fcafc8View commit details
Commits on Sep 27, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 1608579 - Browse repository at this point
Copy the full SHA 1608579View commit details -
Configuration menu - View commit details
-
Copy full SHA for b145175 - Browse repository at this point
Copy the full SHA b145175View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6f60a3 - Browse repository at this point
Copy the full SHA c6f60a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c50d76 - Browse repository at this point
Copy the full SHA 6c50d76View commit details
Commits on Oct 1, 2015
-
Separate time specs and their types
Not all time specs need to have a time type associated with them - only one particular kind. This commit mandates that, by removing the type from the struct. Also, rename RulesSave to Saving, which is what it's being called everywhere else.
Configuration menu - View commit details
-
Copy full SHA for 5a05c64 - Browse repository at this point
Copy the full SHA 5a05c64View commit details
Commits on Oct 13, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 0917919 - Browse repository at this point
Copy the full SHA 0917919View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01b0e42 - Browse repository at this point
Copy the full SHA 01b0e42View commit details
Commits on Oct 27, 2015
-
Add proper transition calculation
This code uses an algorithm cribbed from the C examples in the tzinfo database itself, so they're actually more correct than whatever I was using! - Rename GMT to UTC wherever it's used. It means pretty much the same, but is more modern (I hope this commit message isn't used to make fun of me in the future) - Use the Time Type enum in datetime - there's no point having two of them. - Add a lookup function in the data crate.
Configuration menu - View commit details
-
Copy full SHA for 65a9d15 - Browse repository at this point
Copy the full SHA 65a9d15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0228da8 - Browse repository at this point
Copy the full SHA 0228da8View commit details
Commits on Oct 28, 2015
-
Parse formatting strings beforehand
This introduces a Format enum, which parses the formats beforehand, and figures out which to use based on that. It still panicks, though.
Configuration menu - View commit details
-
Copy full SHA for e93c720 - Browse repository at this point
Copy the full SHA e93c720View commit details -
Sort timezones alphabetically in the main module
This makes it easier to test whether things have changed between crate compilations.
Configuration menu - View commit details
-
Copy full SHA for 7d4a8be - Browse repository at this point
Copy the full SHA 7d4a8beView commit details -
Add a test for the transition-optimisation function, which uses some of the Antarctica/Macquarie rules. However, fix all the other tests to get it to compile at all! - I had to replace some of the end times (123456 and 234567) with their ZoneTime equivalent. - This required some of the fields for the spec structs in line.rs to be made public.
Configuration menu - View commit details
-
Copy full SHA for db97b57 - Browse repository at this point
Copy the full SHA db97b57View commit details
Commits on Oct 29, 2015
-
This makes the code more Rustful, and has no changes to the resulting output.
Configuration menu - View commit details
-
Copy full SHA for a1b868e - Browse repository at this point
Copy the full SHA a1b868eView commit details -
Disable unused_results lint in tests code
This makes it compile without warnings again!
Configuration menu - View commit details
-
Copy full SHA for 30fa66c - Browse repository at this point
Copy the full SHA 30fa66cView commit details -
Remove linker error workaround
The error in question appears to have gone away! Current version: rustc 1.5.0-nightly (95fb8d1c8 2015-10-27)
Configuration menu - View commit details
-
Copy full SHA for 6d602a2 - Browse repository at this point
Copy the full SHA 6d602a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2679f0d - Browse repository at this point
Copy the full SHA 2679f0dView commit details
Commits on Oct 30, 2015
-
Store only the total offset in a transition
Commit 2551f9224a1c188cc7f963f504b27c8cea4d92ae to datetime changes the Transition struct to only have one offset field, rather than two. This commit changes the data crate builder to use the new version of the struct. Also, work around a linker error that I'm not even sure why I'm getting.
Configuration menu - View commit details
-
Copy full SHA for 757b16f - Browse repository at this point
Copy the full SHA 757b16fView commit details -
Write the operation to the data crate, too
This makes it easier to see how the consolidated offset was produced.
Configuration menu - View commit details
-
Copy full SHA for 609f69c - Browse repository at this point
Copy the full SHA 609f69cView commit details
Commits on Nov 5, 2015
-
Replace optional transition times with fixed time
This marks a change to the way transition data was calculated and stored. Previously, each timespan—a period of consistent time zone name, GMT offset, and DST offset—was stored as a transition with an optional timestamp at which the transition occurs. This doesn’t solve the problem of what the time details should be *before* the first transition has occurred, which is why the timestamp was optional: the first period would simply have a `None` timestamp. This approach had problems, namely: 1. It was possible to have multiple `None` timestamps, which would confuse the datetime calculator; 2. It was not only possible but actually manifest to have time zones with *zero* `None` timestamps, which would also confuse the datetime calculator. To remove the possibility of having invalid data, each time zone now has one fixed “ante” period, and at least zero transitions, each of which now has a non-Optional timestamp. It’s a rather simple change, but most of the terminology has been updated to reflect this—Transition to ZoneDetails, among other structs—which is where most of the lines in the diff come from. The only time zones that change in zoneinfo-data are the “fixed” ones like CET or EST5EDT.
Configuration menu - View commit details
-
Copy full SHA for 74f69f6 - Browse repository at this point
Copy the full SHA 74f69f6View commit details -
This uses the PartialEq implementation on ZoneDetails to simplify some of the code, which was getting rather repetitive.
Configuration menu - View commit details
-
Copy full SHA for dff66d4 - Browse repository at this point
Copy the full SHA dff66d4View commit details -
Adapt the data crate builder to use ZoneSet
build-data-crate.rs now uses the new ZoneSet instead of Transition, which is great because Transition doesn't exist anymore. See 74f69f6 for more information on why this is necessary.
Configuration menu - View commit details
-
Copy full SHA for 1167868 - Browse repository at this point
Copy the full SHA 1167868View commit details
Commits on Nov 11, 2015
-
ZoneDetails to FixedTimespan, and ZoneSet to FixedTimespanSet. Also, add the transition instant time for clarity.
Configuration menu - View commit details
-
Copy full SHA for 47b056f - Browse repository at this point
Copy the full SHA 47b056fView commit details -
Many types have been moved to the root of the crate, with others (such as TimeType) accessible from a different module now. See datetime@b86a5752678d2cf410b37c909309138895a61f8a for the commit that necessitated. this.
Configuration menu - View commit details
-
Copy full SHA for b3f5a91 - Browse repository at this point
Copy the full SHA b3f5a91View commit details -
Fix lookup function's lifetime
The ‘get’ function (that *will* be in the data crate’s root) was confused over the elided lifetimes of the ‘lookup’ function (in the data module). Adding an explicit 'static fixes this.
Configuration menu - View commit details
-
Copy full SHA for 4eac23f - Browse repository at this point
Copy the full SHA 4eac23fView commit details -
Configuration menu - View commit details
-
Copy full SHA for de220c7 - Browse repository at this point
Copy the full SHA de220c7View commit details
Commits on Nov 12, 2015
-
Configuration menu - View commit details
-
Copy full SHA for e5cbf7f - Browse repository at this point
Copy the full SHA e5cbf7fView commit details -
- Update nomenclature in test code (FixedTimespan, FixedTimespanSet, no more Transition) - Add local mean times to the rules tests to make them stop failing (it’ll never be valid to have a time zone that *begins* with a rule—it should always have a local mean time first!) - Removed the only feature flag to remove dependence on Rust Nightly
Configuration menu - View commit details
-
Copy full SHA for 0ec5b77 - Browse repository at this point
Copy the full SHA 0ec5b77View commit details
Commits on Nov 13, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 12277b7 - Browse repository at this point
Copy the full SHA 12277b7View commit details -
Inline the Ruleset and Zoneset structs
Although I’d usually be for encapsulating behaviour like this, there’s a lot of surrounding code in this module, and they just kind of get lost in the noise. Plus, this makes the structure of the Table type a bit more clear.
Configuration menu - View commit details
-
Copy full SHA for 0fe5a61 - Browse repository at this point
Copy the full SHA 0fe5a61View commit details -
Include linked timezones in the data
The timezone data crate now contains *all* the timezones, rather than just the ones listed in the zoneinfo files. This completes the timezone data. All that’s left to do is the geolocation stuff.
Configuration menu - View commit details
-
Copy full SHA for d06474a - Browse repository at this point
Copy the full SHA d06474aView commit details
Commits on Nov 17, 2015
-
See datetime@edb41e214d784cb59dca683029fe3867ebe11d50 for the change that broke the old code.
Configuration menu - View commit details
-
Copy full SHA for 9ed0678 - Browse repository at this point
Copy the full SHA 9ed0678View commit details
Commits on Nov 18, 2015
-
Rename TimeZone -> StaticTimeZone
Commit datetime@e6012ba003a8f5949510dea0f9ff334234202b07 caused this. All the time zones we want to build are static (available throughout the program).
Configuration menu - View commit details
-
Copy full SHA for 34c9883 - Browse repository at this point
Copy the full SHA 34c9883View commit details
Commits on Nov 24, 2015
-
- to_string -> to_owned - Eliminate redundant closures and bindings - More easily clone a vector
Configuration menu - View commit details
-
Copy full SHA for 54c7263 - Browse repository at this point
Copy the full SHA 54c7263View commit details -
Impl Error for any error types
...and print them out all in one go, rather than as they occur. This is work towards making the library more error-tolerant.
Configuration menu - View commit details
-
Copy full SHA for 00c2ab9 - Browse repository at this point
Copy the full SHA 00c2ab9View commit details
Commits on Dec 4, 2015
-
extract transition-making logic to its own module
This separates the table module, which deals with table *construction*, and the transitions module, which deals with table *examination*. Casualties include the missing_docs lint, which had to go as I had to make lots of stuff public, and a few re-exports in lib.
Configuration menu - View commit details
-
Copy full SHA for 0a0d8a5 - Browse repository at this point
Copy the full SHA 0a0d8a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a02d20 - Browse repository at this point
Copy the full SHA 6a02d20View commit details
Commits on Dec 5, 2015
-
Fix the data crate's comments' timestamps' formats
Attack of the killer apostrophes! The explanatory timestamps in the comments had the wrong number months, and this way we can use the new ISO formatting that the datetime crate provides.
Configuration menu - View commit details
-
Copy full SHA for d2c8160 - Browse repository at this point
Copy the full SHA d2c8160View commit details -
Begin refactoring the builder code into methods
This moves most of the 'convert this time zone into a list of timespans' code to a new Builder type. The refactoring isn't yet complete, hopefully obviously, but it's at a stable point when it compiles and the data crate output is not modified. It highlights how many of the variables being changed on each iteration are only important for one or the other Saving variant. It also combines the code for the NoSaving and Fixed variants, as they differed only by one variable. Next steps include fixing some of the warnings and getting rid of more per-iteration variables.
Configuration menu - View commit details
-
Copy full SHA for 853f280 - Browse repository at this point
Copy the full SHA 853f280View commit details -
Configuration menu - View commit details
-
Copy full SHA for aca6899 - Browse repository at this point
Copy the full SHA aca6899View commit details
Commits on Feb 10, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 64c6a44 - Browse repository at this point
Copy the full SHA 64c6a44View commit details
Commits on Feb 11, 2016
-
Configuration menu - View commit details
-
Copy full SHA for f0af1d7 - Browse repository at this point
Copy the full SHA f0af1d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3ede4a - Browse repository at this point
Copy the full SHA a3ede4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a832e3 - Browse repository at this point
Copy the full SHA 4a832e3View commit details
Commits on Feb 12, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 0e42837 - Browse repository at this point
Copy the full SHA 0e42837View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dd1606 - Browse repository at this point
Copy the full SHA 6dd1606View commit details -
Configuration menu - View commit details
-
Copy full SHA for 296a5f2 - Browse repository at this point
Copy the full SHA 296a5f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe0ab40 - Browse repository at this point
Copy the full SHA fe0ab40View commit details -
Configuration menu - View commit details
-
Copy full SHA for f97105f - Browse repository at this point
Copy the full SHA f97105fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7acbdc - Browse repository at this point
Copy the full SHA d7acbdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d28375e - Browse repository at this point
Copy the full SHA d28375eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f2fd39 - Browse repository at this point
Copy the full SHA 8f2fd39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 713af90 - Browse repository at this point
Copy the full SHA 713af90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62315f1 - Browse repository at this point
Copy the full SHA 62315f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d93800 - Browse repository at this point
Copy the full SHA 7d93800View commit details -
Configuration menu - View commit details
-
Copy full SHA for a46e8ae - Browse repository at this point
Copy the full SHA a46e8aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for d31c5cf - Browse repository at this point
Copy the full SHA d31c5cfView commit details -
Change panic call to returning an Option
Trying to get a non-existent timezone out of a table used to panic... which worked well until I needed to write a test showing that it would fail! So this commit changes it to returning None instead.
Configuration menu - View commit details
-
Copy full SHA for 5a912a3 - Browse repository at this point
Copy the full SHA 5a912a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5518e3 - Browse repository at this point
Copy the full SHA d5518e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for da27df4 - Browse repository at this point
Copy the full SHA da27df4View commit details
Commits on Sep 25, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 2cebd35 - Browse repository at this point
Copy the full SHA 2cebd35View commit details -
Configuration menu - View commit details
-
Copy full SHA for a73e1a1 - Browse repository at this point
Copy the full SHA a73e1a1View commit details
Commits on Oct 5, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 965cd2a - Browse repository at this point
Copy the full SHA 965cd2aView commit details
Commits on Oct 6, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 2a98e68 - Browse repository at this point
Copy the full SHA 2a98e68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4aa23d0 - Browse repository at this point
Copy the full SHA 4aa23d0View commit details
Commits on Oct 9, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 6040286 - Browse repository at this point
Copy the full SHA 6040286View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a0b732 - Browse repository at this point
Copy the full SHA 0a0b732View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b1161c - Browse repository at this point
Copy the full SHA 6b1161cView commit details
Commits on Oct 23, 2016
-
Merge pull request #6 from djzin/master
Handle negative offsets, "Alternative" parsing error and comment lines
Configuration menu - View commit details
-
Copy full SHA for da7a241 - Browse repository at this point
Copy the full SHA da7a241View commit details -
Configuration menu - View commit details
-
Copy full SHA for d533d0a - Browse repository at this point
Copy the full SHA d533d0aView commit details
Commits on Apr 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3fef60b - Browse repository at this point
Copy the full SHA 3fef60bView commit details