This queue is for tickets about the HTML-FormFu CPAN distribution.

Report information
The Basics
Id:
73564
Status:
stalled
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
dean [...] fragfest.com.au
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
(no value)
Fixed in:
(no value)



Subject: requesting, constraints on Date/DateTime fields
It would be exceptionally helpful if there were some contraints specific to Date and DateTime fields. I would suggest - Dates being sane, for example not allowing the 30th of Feb, and getting feb 29th right which is when (look this up if you like)... $days = 29 if ( $year % 400 == 0 ) || ( ( $year % 100 != 0 ) && ( $year % 4 == 0 ) ); - Dates being after and/or before given times - Dates being after and/or before another Date field (for example, a finishing time being after a start time) thanks for all your great work!
Show quoted text
> It would be exceptionally helpful if there were some contraints specific > to Date and DateTime fields. I would suggest > > - Dates being sane, for example not allowing the 30th of Feb, and
This can already be achieved with HTML::FormFu::Constraint::DateTime
Show quoted text
> - Dates being after and/or before given times > > - Dates being after and/or before another Date field (for example, a > finishing time being after a start time)
Good idea - hopefully someone will have the time to pick it up. Note: this would ideally be implemented as a Validator, not a Constraint.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.