guyskk / guyskk/validr

Feature: use ciso8601 to implement datetime validator

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
221
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently datetime.strptime method is not flexible, it only support vert strict format.
Use https://github.com/closeio/ciso8601 is better to parse iso8601 datetime format.

And add `tzaware` option, if `tzaware=True` then return datetime object with timezone info (UTC).

The change is compatible, no break changes.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.