Cottonwood-Technology / ValidX

Fast, powerful, and flexible validator with sane syntax.
BSD 2-Clause "Simplified" License
20 stars 4 forks source link

Add ability to specify default time for implicit conversion of date to datetime within Datetime validator. #15

Closed kr41 closed 1 year ago

kr41 commented 1 year ago
start_date = Datetime()  # converts date to YYYY-MM-DD 00:00:00
end_date = Datetime(default_time=time.max)  # converts date to YYYY-MM-DD 23:59:59

See discussion in #13 for details.