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 #273

Merged
merged 2 commits into from
Jan 7, 2018

Commits on Jul 21, 2017

  1. Add support for alternative timestamp formats

    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.
    abishopric authored and rogpeppe committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    c75e52e View commit details
    Browse the repository at this point in the history
  2. Fixes to timestamp support.

    Factor the timestamp parsing into its own function that
    can easily be changed later to support the full range of
    time stamps and add a quick early check to avoid
    going through all the time.Parse calls in this common
    path.
    
    Also fix marshaling so that times are still printed unquoted.
    rogpeppe committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    422f540 View commit details
    Browse the repository at this point in the history