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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)