Skip to content
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

Add support for alternative timestamp formats #117

Closed
wants to merge 1 commit into from

Conversation

anthonybishopric
Copy link

yaml.org describes several alternative formats for timestamps not
covered by the default implementation of time.UnmarshalText(). These
are handled explicitly in this change in resolve.go

Timestamps will only be collected if there is an explicit timestamp
tag (ie, not !!str) or if implicit type detection is enabled.

yaml.org describes several alternative formats for timestamps not
covered by the default implementation of `time.UnmarshalText()`. These
are handled explicitly in this change in resolve.go

Timestamps will only be collected if there is an explicit timestamp
tag (ie, not `!!str`) or if implicit type detection is enabled.
@rogpeppe
Copy link
Contributor

Thanks very much for doing this. Unfortunately it doesn't go as far as the
spec (http://yaml.org/type/timestamp.html) allows, and it breaks
the tests, but it's still useful - I've used it as the basis of new PR.
See PR #273.

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

Successfully merging this pull request may close these issues.

2 participants