arrow-py / arrow

🏹 Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.73k stars 684 forks source link

Add FORMAT_RFC3339_STRICT. #1201

Open krisfremen opened 3 weeks ago

krisfremen commented 3 weeks ago

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

Adds a FORMAT variable for a more strict RFC3339 where the RFC called for a space for readability and is used by FORMAT_RFC3339, FORMAT_RFC3339_STRICT uses the T separator to adhere with ISO8601 spec.

RFC Link

      NOTE: ISO 8601 defines date and time separated by "T".
      Applications using this syntax may choose, for the sake of
      readability, to specify a full-date and full-time separated by
      (say) a space character.

Closes #1138

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (403c29f) to head (f13d917). Report is 11 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1201 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 10 Lines 2324 2335 +11 Branches 357 357 ========================================= + Hits 2324 2335 +11 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.