| µ¥ÀÌÅÍ :: FormValidator :: Á¦¾à Á¶°Ç :: DateTime. Data :: FormValidator :: Constraints :: DateTime ÆÐÅ°Áö¿¡´Â D :: FV Á¦¾à Á¶°ÇÀÌ ³¯Â¥¿Í ½Ã°£¿¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
µ¥ÀÌÅÍ :: FormValidator :: Á¦¾à Á¶°Ç :: DateTime. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Michael Peters
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~wonko/CGI-Application-Dispatch-2.12/lib/CGI/Application/Dispatch.pm
µ¥ÀÌÅÍ :: FormValidator :: Á¦¾à Á¶°Ç :: DateTime. ű×
µ¥ÀÌÅÍ :: FormValidator :: Á¦¾à Á¶°Ç :: DateTime. ¼³¸í
data :: formValidator :: Á¦¾à Á¶°Ç :: DateTime ÆÐÅ°Áö¿¡´Â D :: FV Á¦¾à Á¶°ÇÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. data :: formValidator :: constraints :: DateTime ÆÐÅ°Áö¿¡´Â D :: FV ±¸¼Ó Á¶°ÇÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.ÀÌ ÆÐÅ°Áö´Â ³¯Â¥¿Í ½Ã°£À» ´Ù·ç´Â Data :: FormValidator¿¡ ´ëÇÑ Á¦¾à Á¶°Ç ·çƾÀ» Á¦°øÇÕ´Ï´Ù. ±×°ÍÀº ¸ðµç Çü½ÄÀÇ ³¯Â¥¸¦ À¯È¿ÈÇÏ´Â µ¥ ½¬¿î ¸ÞÄ¿´ÏÁò (strptime (3))À» »ç¿ëÇÏ°í ÇØ´ç ³¯Â¥¸¦ À¯È¿ÇÑ DateTime °´Ã¼·Î º¯È¯Çϰųª ´Ù¾çÇÑ µ¥ÀÌÅͺ£À̽º ¿£Áø¿¡ ´ëÇØ Á¦´ë·Î Æ÷¸Ë ÇÒ ¹®ÀÚ¿·Î º¯È¯ÇÕ´Ï´Ù. .ABstract µ¥ÀÌÅÍ »ç¿ë :: FormValidator; Data :: FormValidator :: Á¦¾à Á¶°Ç :: DateTime QW (: ALL); # ÇÁ·ÎÆÄÀÏ ÀÛ¼º My $ profile = {Çʼö => , constraint_methods => {my_date => to_dateTime ( '% d'), # mm / dd / yyyy}, UNTATT_ALL_CONSTRAINTS => 1, }; # 'my_date'my $ °á°ú = data :: formValidator-> È®ÀÎ ($ my_input, $ profile); if ($ °á°ú - ¼º°ø) {# $ °á°ú°¡ ÀÖÀ¸¸é $ °á°ú -> À¯È¿ ( 'my_date') #Àº À¯È¿ÇÑ DateTime ¿ÀºêÁ§Æ®°¡ ³» $ datetime = $ °á°ú -> À¯È¿ ( 'my_date'); ...¿¡ ...¿¡ } ¿ä±¸ »çÇ× : ¡¤ Perl.
µ¥ÀÌÅÍ :: FormValidator :: Á¦¾à Á¶°Ç :: DateTime. °ü·Ã ¼ÒÇÁÆ®¿þ¾î