Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::formhandler::field::datetime(3pm) [debian man page]

HTML::FormHandler::Field::DateTime(3pm) 		User Contributed Perl Documentation		   HTML::FormHandler::Field::DateTime(3pm)

NAME
HTML::FormHandler::Field::DateTime - compound DateTime field VERSION
version 0.40013 DESCRIPTION
This is a compound field that requires you to define the subfields for month/day/year/hour/minute. Widget type is 'compound'. If you want to use drop-down select boxes for your DateTime, you can select fields like: has_field 'my_date' => ( type => 'DateTime' ); has_field 'my_date.month' => ( type => 'Month' ); has_field 'my_date.day' => ( type => 'MonthDay' ); has_field 'my_date.year' => ( type => 'Year' ); has_field 'my_date.hour' => ( type => 'Hour' ); has_field 'my_date.minute' => ( type => 'Minute' ); If you want simple input fields: has_field 'my_date' => ( type => 'DateTime' ); has_field 'my_date.month' => ( type => 'Integer', range_start => 1, range_end => 12 ); has_field 'my_date.day' => ( type => 'Integer', range_start => 1, range_end => 31 ); Customizable error: 'datetime_invalid' (default = "Not a valid DateTime") See the 'Date' field for a single input date field. AUTHOR
FormHandler Contributors - see HTML::FormHandler COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 HTML::FormHandler::Field::DateTime(3pm)

Check Out this Related Man Page

HTML::FormHandler::Field::Upload(3pm)			User Contributed Perl Documentation		     HTML::FormHandler::Field::Upload(3pm)

NAME
HTML::FormHandler::Field::Upload - file upload field VERSION
version 0.40013 DESCRIPTION
This field is designed to be used with a blessed object with a 'size' method, such as Catalyst::Request::Upload, or a filehandle. Validates that the file is not empty and is within the 'min_size' and 'max_size' limits (limits are in bytes). A form containing this field must have the enctype set. package My::Form::Upload; use HTML::FormHandler::Moose; extends 'HTML::FormHandler'; has '+enctype' => ( default => 'multipart/form-data'); has_field 'file' => ( type => 'Upload', max_size => '2000000' ); has_field 'submit' => ( type => 'Submit', value => 'Upload' ); In your controller: my $form = My::Form::Upload->new; my @params = ( file => $c->req->upload('file') ) if $c->req->method eq 'POST'; $form->process( params => { @params } ); return unless ( $form->validated ); You can set the min_size and max_size limits to undef if you don't want them to be validated. DEPENDENCIES
widget Widget type is 'upload' AUTHOR
FormHandler Contributors - see HTML::FormHandler COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 HTML::FormHandler::Field::Upload(3pm)
Man Page

10 More Discussions You Might Find Interesting

1. Programming

C programming on Linux/BSD : which tools to use?

Hello there, i've lurked this forum for a while (in few month i will have been registered for two years) but this is my firts post. Well, after having looked to C language as a black monster, i finally have decided to learn it, and to learn it very well! So, i'm quite new to C, although i... (1 Reply)
Discussion started by: Freddie
1 Replies

2. UNIX for Advanced & Expert Users

oracle update not working

Hi, I have a oracle source with a field my_date =06/02/2009 I am trying to update the table to SYSDATE with a myscript.sql where I have UPDATE table set my_date=to_DATE(SYSDATE,'MM/DD/YYYY'); Now I try to run it with myupdate.SH script where I have sqlplus nolog @myscript.sql ... (4 Replies)
Discussion started by: RubinPat
4 Replies

3. Shell Programming and Scripting

Date Validation in unix

I have a script which is take date as parameter sh abc.sh <2010-02-01> #!/sh/bin my_date=$1 #Here i want to two diffrent dates ## 3 Days before ##date14query=$mydate - 4 (it will be 2010-01-28) ##date24query=$mydate +4 (it will be 2010-01-05) #Please Help (3 Replies)
Discussion started by: pritish.sas
3 Replies

4. Shell Programming and Scripting

Awk - how to select the column based on day of month

Problem, How can you pass today's date (eg) 18 into Awk and select the field representing the 18th column? I have an output that I want to interact with based on what day it is information=0:0 192:0 5436:0 22:99 0:0 0:0 1234:0 1359:09 DAY=date'+%d' numbrs=`$information | awk... (2 Replies)
Discussion started by: Gizmo1007
2 Replies

5. UNIX for Dummies Questions & Answers

Count Fields with Quoted Field

Hi, I used to count number of fields using following command head -1 <filename> | awk -F"," '{print NF}' Now the scenario is the delimiter(comma) occurs inside one of the data field. How to ignore the comma inside data and consider only delimiter and count number of fields. The fields are... (1 Reply)
Discussion started by: ethanr100
1 Replies

6. Shell Programming and Scripting

To Check whether the Input is a Year or Not?

Hi Guys I have a Requirement that the input will be given and i have to check whether the input is a Year or not. For Example 2004,2009 and so on forth will be considered a year and anything else like 12:15 or else will not be. Have built the below Code set -x echo " Enter... (6 Replies)
Discussion started by: Ajesh
6 Replies

7. Shell Programming and Scripting

Field extract w/o - and adding formats

I have a txt file like below: Accession Orderable Unique ID Subject ID Timepoint Colletion Date/Time 12-170-0185 Glucose 1756487 1 D-07_H00.03 18-JUN-2012 06:03:00 12-170-0185 Insulin 1756487 1 D-07_H00.03 18-JUN-2012 06:03:00 12-170-0200 Glucose 1756487 1 D-07_H00.05... (9 Replies)
Discussion started by: Daniel Gate
9 Replies

8. Shell Programming and Scripting

Help me with daily monitoring script

find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \( -newer range_start -a \! -newer range_end \) -exec wc -l {} \; |awk '{total+=$1-1} END {print total}' >>$LOGFILE I need to print time stamp of the files int the paticular period .Please modify the above script so that i get... (34 Replies)
Discussion started by: RaghavendraT
34 Replies

9. Programming

Are These All The Integer Types In C

Hello and Good day, I am currently studying C and I just finished learning about variables mainly those of integer type. I am wondering if the list below are all there is to integer variables and there are still more that i have to learn. Here are the list: Char Short int long long long... (3 Replies)
Discussion started by: split_func0
3 Replies

10. Shell Programming and Scripting

Minute(4) issue in teradata

I have values below for which diff field is giving error like "invalid time interval" in teradata Might be it is not doing calculation anymore after exceeding minute(4) value END_TS 2/2/2018 08:50:49.000000 START_TS 1/5/2018 17:30:02.000000 SLA_TIME 23:59:59.000000 select... (0 Replies)
Discussion started by: himanshupant
0 Replies