Skip Menu |
 

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

Report information
The Basics
Id: 73564
Status: stalled
Priority: 0/
Queue: HTML-FormFu

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

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: requesting, constraints on Date/DateTime fields
Download (untitled) / with headers
text/plain 569b
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!
Download (untitled) / with headers
text/plain 570b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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