MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / dateFormat

Method dateFormat

tests/testvalidator.cpp:529–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527 // ***** Endpoint for ValidatorDate with custom format ******
528 C_ATTR(dateFormat, :Local :AutoArgs)
529 void dateFormat(Context *c)
530 {
531 Validator v({new ValidatorDate(u"field"_s, "yyyy d MM", m_validatorMessages)});
532 checkResponse(c, v.validate(c));
533 }
534
535 // ***** Endpoint for ValidatorDateTime with standard formats ******
536 C_ATTR(dateTime, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected