Validator.js: Feature Request - Add Time Validator

Created on 11 Aug 2020  ·  4Comments  ·  Source: validatorjs/validator.js

Similarly to how the documentation mentions of a Date and DateTime validator, it would be great if there was a validator for Time. Don't know how the api for this would look like but I don't think it would be too far off from how the Date and DateTime validator operate.

pr-raised ☑ assigned 🙋‍♂️feature-request

Most helpful comment

I will work on this one.

All 4 comments

I will work on this one.

@ezkemboi -- let me know if this on the way.

Could you also post here the spec or how you are looking to tackle it; I see several variations, 12-hr, 24-hr, will we add seconds section, etc?

This has been worked on #1479 and I will do a review on the same @profnandaa

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zilahir picture zilahir  ·  3Comments

rathboma picture rathboma  ·  4Comments

malkhuzayyim picture malkhuzayyim  ·  4Comments

MindRapist picture MindRapist  ·  4Comments

karladler picture karladler  ·  3Comments