Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
HTML::FormFu::Deflator::CompoundDateTime - CompoundDateTime deflator SYNOPSIS
--- element: - type: Multi name: date elements: - name: day - name: month - name: year deflator: - type: CompoundDateTime # set the default $form->get_field('date')->default( $datetime ); DESCRIPTION
For use with a HTML::FormFu::Element::Multi group of fields. Sets the default values of several fields from 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 don'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 deflator: - type: CompoundDateTime field_order: - month - day - year 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::Deflator::CompoundDateTime(3pm)

Check Out this Related Man Page

HTML::FormFu::Filter::CompoundSprintf(3pm)		User Contributed Perl Documentation		HTML::FormFu::Filter::CompoundSprintf(3pm)

NAME
HTML::FormFu::Filter::CompoundSprintf - CompoundSprintf filter SYNOPSIS
--- element: - type: Multi name: date elements: - name: day - name: month - name: year filter: - type: CompoundSprintf sprintf: '%02d-%02d-%04d' # get the compound-value my $date = $form->param_value('date'); DESCRIPTION
For use with a HTML::FormFu::Element::Multi group of fields. Uses a sprintf pattern to join the input from several fields into a single value. METHODS
sprintf Arguments: $string "sprintf" pattern used to join the individually submitted parts. The pattern is passed to the perl-core "sprintf" function. field_order Inherited. See "field_order" in HTML::FormFu::Filter::_Compound for details. --- element: - type: Multi name: date elements: - name: month - name: day - name year filter: - type: CompoundSprintf field_order: - day - month - year 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 2012-01-23 HTML::FormFu::Filter::CompoundSprintf(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File names

Ok bit of a noob here. Need some help with filenames. Cant see what has changed, but heres the info : Have a directory on webserver - for documents, which is then broken down into year / month. If you check the dir's on the webserver, or any other Linux box, then the file names are... (9 Replies)
Discussion started by: giantflameeater
9 Replies

2. Shell Programming and Scripting

Date Intervals

I posted a question on date intervals about a month back asking about how I could be able to go about a user entering the starting year/month/day and an ending year/month/day and then the script automatically cycling through each day of each month of each year that the user has specified. I... (7 Replies)
Discussion started by: yongho
7 Replies

3. UNIX for Dummies Questions & Answers

Append date to filename

What is the easiest way to append the date (year, month, day) to a filename? (5 Replies)
Discussion started by: hshapiro
5 Replies

4. 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

5. Shell Programming and Scripting

Perl in KSH - julian conversion

Hello Everyone, I have this code misbehaving in one of my scripts, I have a var containing the sequential number of the day for the year and I am suppose to get the regular date for that day and its weekday. If I set the day to 273 I get back 2008/09/31 which is not a proper date. can you help... (7 Replies)
Discussion started by: gio001
7 Replies

6. Shell Programming and Scripting

Keeping padding in a date field

Hi Guys, I'm having a bit of a problem with a script, i need to get the day, month and day of month into a string, so i'm using: CURRENT_DATE=`date +"%a %b %e"` It is getting the correct date out, however it is not keeping the padding on the day of month. The %e is supposed to pad the day... (5 Replies)
Discussion started by: seanbyrne
5 Replies

7. UNIX for Dummies Questions & Answers

Sort field by date mm/dd/yyyy

Hello Group, I would like to sort the below file by date (first year then month and day) and I used the following command but it does not work sort -n -t"/" -k3 -k1 -k2 "sample original file" 12/28/2009,1.0353 12/31/2009,1.0357 12/30/2009,1.0364 12/29/2009,1.0366 12/24/2009,1.0386... (6 Replies)
Discussion started by: csierra
6 Replies

8. Shell Programming and Scripting

HTML Encoded characters -- Perl

Hello all I have a string like " Have Fun for the rest of the day !. I will meet you tomorrow!" ! is the HTML Equivalent of ! symbol. From the above string, i would like to remove only the HTML encoded special characters. Output should be like " Have Fun for the rest of the day... (4 Replies)
Discussion started by: vasuarjula
4 Replies

9. Shell Programming and Scripting

Multi-Line Search and Replace

There appears to be several threads that touch on what I'm trying to do, but nothing quite generic enough. What I need to do is search through many (poorly coded) HTML files and make changes. The catch is that my search string may be on one line or may be on several lines. For example there... (5 Replies)
Discussion started by: bisbell
5 Replies

10. Shell Programming and Scripting

delete only part of a line

Hi, I've a file as below- I need to delete only the part of the line after the pattern 'extent /lock' and my output has to be like below. Thanks (7 Replies)
Discussion started by: dvah
7 Replies

11. Shell Programming and Scripting

Copy a value from file name

I am new to scripting world, My requirement is I have set of filenames , I have to search for the specific file names, then from each of the file I have to cut the month and year inforamtion , then add that value as additional column to each record. these files are comma delimited file. ... (6 Replies)
Discussion started by: deva78
6 Replies

12. UNIX for Dummies Questions & Answers

Perl add one minute to the given date

Hello Gurus, We have a query where we need to add one minute ( also we need to add 12 hrs in another query) to given date. we tried using some functionalities like 'perl -e @d= $run_dt + 600' . however we were not succeeded. Basically issue is we get date in following format "May18... (9 Replies)
Discussion started by: sandeeppvk
9 Replies

13. 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

14. UNIX for Dummies Questions & Answers

How to get year part from file created date?

Hi Gurus, I need to get year part of file created date. when using ls -l , it only show month, day and time. is there any option I can add to get year portition? Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies

15. Shell Programming and Scripting

To learn last login date

Hello, # last| grep -v "root" | head -1 evam pts/4 10.16.241.217 Fri Nov 20 10:48 gone - no logout I can see last date without year. But I want to learn year of the last login. # last| grep -v "root" | head -1 | awk '{print$4" "$5" "$6" "$7 }' Fri Nov 20 10:48 How can... (5 Replies)
Discussion started by: getrue
5 Replies