Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Parse some date- and time-based headers #4

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

db48x
Copy link
Contributor

@db48x db48x commented May 31, 2014

I think this is in reasonable shape. Parsing of timestamps may need to be revisited in the future, but overall things are working well, and the type scheme is doing its job.

db48x added 9 commits May 30, 2014 22:56
not fully tested, but functional
so that we don't end up with non-headers with all-caps identifiers
Requires changing the header! macro; the docstring isn't optional.
Tests the Headers collection less and the parsing more. Test fails
because timezone, nanoseconds, dst.
The test was failing because some values of the timestamp don't make
it into the formatted representation: the nanoseconds and the
year-day. We also currently convert all timestamps to UTC before
formatting. Supply a timestamp to the tests which has zero for nsec
and yday, and is already in UTC; straight equality testing then works.
@db48x
Copy link
Contributor Author

db48x commented Jun 1, 2014

oops, I pushed too much onto this branch

@db48x
Copy link
Contributor Author

db48x commented Jun 2, 2014

Chris, how do you want to do external dependencies?

@db48x
Copy link
Contributor Author

db48x commented Aug 2, 2014

Needs rust-lang/rust#16202. What do you think of it otherwise, Chris?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant