Re: date manipulation mods

2004-05-13 Thread Jeff 'japhy' Pinyan
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,

Re: date manipulation mods

2004-05-13 Thread Harry Putnam
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/

Re: date manipulation mods

2004-05-13 Thread Harry Putnam
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

RE: date manipulation mods

2004-05-13 Thread Bob Showalter
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: >

Re: date manipulation mods

2004-05-13 Thread Jeff 'japhy' Pinyan
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

date manipulation mods

2004-05-13 Thread Harry Putnam
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

Re: Date manipulation

2004-02-10 Thread James Edward Gray II
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

Re: Date manipulation

2004-02-10 Thread Kenton Brede
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

Re: Date manipulation

2004-02-10 Thread Jan Eden
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

Re: Date manipulation

2004-02-10 Thread Gabor Urban
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

Date manipulation

2004-02-10 Thread Roger Grosswiler
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

RE: Date manipulation

2003-01-13 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Date manipulation

2003-01-13 Thread David Samuelsson (PAC)
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

RE: Date Manipulation

2002-01-25 Thread Hanson, Robert
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

Date Manipulation

2002-01-25 Thread Lysander
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

Re: Date manipulation (Back to the future)

2001-11-15 Thread Andrea Holstein
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

Date manipulation (Back to the future)

2001-11-15 Thread Suru Dissanayake
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