go-openapi / strfmt

openapi toolkit common string formats
Apache License 2.0
102 stars 62 forks source link

Export DateTimeFormats variable used by ParseDateTime() #71

Closed padamstx closed 4 years ago

padamstx commented 4 years ago

Closes #70

This commit exports the DateTimeFormats variable so that users can modify the set of formats used by ParseDateTime, as in this example: strfmt.DateTimeFormats = append(strfmt.DateTimeFormats, "2006-01-02T15:04Z0700")

Signed-off-by: Phil Adams phil_adams@us.ibm.com

codecov[bot] commented 4 years ago

Codecov Report

Merging #71 (3eb4966) into master (3236244) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #71   +/-   ##
=======================================
  Coverage   81.63%   81.63%           
=======================================
  Files          10       10           
  Lines        1285     1285           
=======================================
  Hits         1049     1049           
  Misses        164      164           
  Partials       72       72           
Impacted Files Coverage Δ
time.go 95.18% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3236244...3eb4966. Read the comment docs.