MCPcopy Index your code
hub / github.com/diffgram/diffgram / validate_date

Function validate_date

shared/regular/regular_input.py:217–222  ·  view source on GitHub ↗
(date_text)

Source from the content-addressed store, hash-verified

215
216
217def validate_date(date_text):
218 try:
219 datetime.datetime.strptime(date_text, '%Y-%m-%d')
220 return True
221 except ValueError:
222 return False
223
224
225def input_check_many(spec_list,

Callers 1

input_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected