On May 13, Harry Putnam said:
>Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
>
>> On May 13, Harry Putnam said:
>>
>>>Is there a date manipulation module that does the same thing as gnu
>>>`date -d' command? That is, given a spec string,
Bob Showalter <[EMAIL PROTECTED]> writes:
> Or, you can use something like Date::Manip which handles the '2 weeks ago'
> type of expressions. It has its own UnixDate function that is similar to
> POSIX::strftime.
Aha... now we're talking. Date::Manip is what I was after:
cat test.pl:
#!/usr/
Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
> On May 13, Harry Putnam said:
>
>>Is there a date manipulation module that does the same thing as gnu
>>`date -d' command? That is, given a spec string, it returns a date in
>>the past in user select
Harry Putnam wrote:
> Group,
>
> Is there a date manipulation module that does the same thing as gnu
> `date -d' command? That is, given a spec string, it returns a date in
> the past in user selected format.
>
> Like what gnu `date' would do with:
>
On May 13, Harry Putnam said:
>Is there a date manipulation module that does the same thing as gnu
>`date -d' command? That is, given a spec string, it returns a date in
>the past in user selected format.
>
>Like what gnu `date' would do with:
> date -d '-2 w
Group,
Is there a date manipulation module that does the same thing as gnu
`date -d' command? That is, given a spec string, it returns a date in
the past in user selected format.
Like what gnu `date' would do with:
date -d '-2 weeks' +"%m%d%Y_%T"
042920
On Feb 10, 2004, at 4:21 AM, Roger Grosswiler wrote:
hi list,
Hello.
i'd like to try a first perl-script that should:
-define todays date
print localtime(), "\n";
-define todays date minus one week
print localtime( time - 60 * 60 * 24 * 7 ), "\n"; # depending on how
you define "week"
-find in
On Tue, Feb 10, 2004 at 11:21:15AM +0100, Roger Grosswiler ([EMAIL PROTECTED]) wrote:
> hi list,
>
> i'd like to try a first perl-script that should:
>
> -define todays date
> -define todays date minus one week
> -find in a special directory files, that contain ddmmyy
> -remove them
>
> ..since
Roger Grosswiler wrote:
>But: how can i find out the Systems-Date with Perl? Which format has
>it? Is there a perlman-page? (I was looking, but didn't find...)
>
perldoc -f localtime
HTH,
Jan
--
There's no place like ~/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
From: "Roger Grosswiler" <[EMAIL PROTECTED]>
Subject: Date manipulation
Date: Tue, 10 Feb 2004 11:21:15 +0100 (CET)
> hi list,
>
> i'd like to try a first perl-script that should:
>
> -define todays date
> -define todays date minus one week
> -find
hi list,
i'd like to try a first perl-script that should:
-define todays date
-define todays date minus one week
-find in a special directory files, that contain ddmmyy
-remove them
..since i am an absolute beginner in programming...i think, if i can read
out this directory, i can find the files
David Samuelsson (PAC) wrote:
> I have an nice script that lest me list stuff from a certian date in
> time. It based on:
>
> DD-MON-YY (say 01-jan-03) that will be from the first of january. I
> am trying to add more functionality to the script. I need a function
> where i get an variable $days
I have an nice script that lest me list stuff from a certian date in time. It based on:
DD-MON-YY (say 01-jan-03) that will be from the first of january. I am trying to add
more functionality to the script. I need a function where i get an variable $days say
90, then i must subtract 90 days from
PROTECTED]]
Sent: Friday, January 25, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: Date Manipulation
I was wondering if there is an easy way to convert between date formats in
PERL.
Specifically I need to rewrite "22-January-2002" as "2002-01-22" prior to
inserting into a date fie
I was wondering if there is an easy way to convert between date formats in PERL.
Specifically I need to rewrite "22-January-2002" as "2002-01-22" prior to inserting
into a date field in MySQL.
In PHP (which is what I usually code in) I would just do something like
$date = date("Y-m-d",strtotim
Suru Dissanayake wrote:
>
> Hi Perl mailing list!
>
> I have a small dilemma; I want to manipulate a date.
> For example if I have the date ? 2001-11-15 16:22:00?
> I would like to get the previous day, week, month and year in a easy way.
> Is there a module that handles this kind of manipulatio
Hi Perl mailing list!
I have a small dilemma; I want to manipulate a date.
For example if I have the date 2001-11-15 16:22:00
I would like to get the previous day, week, month and year in a easy way.
Is there a module that handles this kind of manipulation?
A function call that you send the
17 matches
Mail list logo