Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::formfu::inflator::compounddatetime(3pm) [debian man page]

HTML::FormFu::Inflator::CompoundDateTime(3pm)		User Contributed Perl Documentation	     HTML::FormFu::Inflator::CompoundDateTime(3pm)

NAME
HTML::FormFu::Inflator::CompoundDateTime - CompoundDateTime inflator SYNOPSIS
--- element: - type: Multi name: date elements: - name: day - name: month - name: year inflator: - type: CompoundDateTime # get the submitted value as a DateTime object my $date = $form->param_value('date'); DESCRIPTION
For use with a HTML::FormFu::Element::Multi group of fields. Changes the input from several fields into a single DateTime value. By default, expects the field names to be any of the following: year month day hour minute second nanosecond time_zone METHODS
field_order Arguments: @order If your field names doesn't follow the convention listed above, you must provide an arrayref containing the above names, in the order they correspond with your own fields. --- element: - type: Multi name: date elements: - name: m - name: d - name: y inflator: - type: CompoundDateTime field_order: - month - day - year strptime Arguments: \%args Arguments: $string Optional. Define the format that should be used if the DateTime object is stringified. Accepts a hashref of arguments to be passed to "new" in DateTime::Format::Strptime. Alternatively, accepts a single string argument, suitable for passing to "DateTime::Format::Strptime->new( pattern => $string )". --- inflator: - type: CompoundDateTime strptime: pattern: '%d-%b-%Y' locale: de --- inflator: - type: CompoundDateTime strptime: '%d-%m-%Y' AUTHOR
Carl Franks LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-23 HTML::FormFu::Inflator::CompoundDateTime(3pm)

Check Out this Related Man Page

HTML::FormFu::Constraint::DateTime(3pm) 		User Contributed Perl Documentation		   HTML::FormFu::Constraint::DateTime(3pm)

NAME
HTML::FormFu::Constraint::DateTime - DateTime constraint SYNOPSIS
--- elements: - type: Text name: start_date constraints: - type: DateTime parser: strptime: '%d-%m-%Y' - type: Text name: end_time constraints: - type: DateTime parser: regex: !!perl/regexp '^(d{2}) - (d{2}) - (d{4})$' params: [day, month, year] An example of using the same parser declaration for both a DateTime constraint and a DateTime inflator, using YAML references: --- elements: - type: Text name: date constraints: - type: DateTime parser: &PARSER strptime: '%d-%m-%Y' inflators: - type: DateTime parser: *PARSER DESCRIPTION
Ensure input can later be inflated to a DateTime object. METHODS
parser Arguments: \%args Required. Define the expected input string, so DateTime::Format::Builder knows how to turn it into a DateTime object. Accepts arguments to be passed to "parser" in DateTime::Format::Builder. AUTHOR
Carl Franks, "cfranks@cpan.org" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-05-10 HTML::FormFu::Constraint::DateTime(3pm)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Multi User Multi Task

Dear Experts Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task?? Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies

2. Shell Programming and Scripting

Multi File processing

Hello, I have 2 csv files: File1: Name,year,organization Jim,2007,Org1 Bob,1999,Org3 Chris,2001,Org2 File2: DocumentName,DocumentTitle,organization,year Test1,Test1,Org1,2007 Test2,Test2,Org2,2008 Test3,Test3,Org3,2009 Using the ksh, I'm reading by line and grabbing the... (2 Replies)
Discussion started by: orahi001
2 Replies

3. Shell Programming and Scripting

Problem with my case statements

Hi there, Im having some problems with this function, I pass two arguments to the function $1 $2 (Arguments are month and date inputted by the user) for some reason the case always fails... however in the cases defined below where it shouldnt fail the result is: if it fails with input... (6 Replies)
Discussion started by: Darklight
6 Replies

4. Red Hat

RHCE DUMPS

Hi All, I am planing to take RHCE exam in the month of March 2012. Could anyone provide me with the latest dumps and pattern which can help me in clearing the certification exam. Thanks (1 Reply)
Discussion started by: chetansingh23
1 Replies

5. AIX

AIX - Get next month from current date

As said in object, how can i obtain that? In linux i use date -d "1 month" +"%m%Y". Thanks i advance. (8 Replies)
Discussion started by: fabfisc
8 Replies