Re: Localtime minutes before or after

2003-08-17 Thread Jeff 'japhy' Pinyan
On Aug 17, Pablo Fischer said: >030817145 Does that represent... 03 -> 2003 08 -> August 17 -> 17th 14 -> 2pm 5 -> 5 minutes I'm a little wary of that form of storing the date, but I suppose we can deal with it. >However in some parts of my code I need to get another date, and I onl

Re: Localtime minutes before or after

2003-08-17 Thread Bernhard van Staveren
Localtime takes it's input either from the time() function if you call it without parameters, or from a timestamp you supply. So, if I wanted the current date and time, but 10 minutes into the future I'd do: my $mydate=localtime( time() + 600 ); (600 seconds being 10 minutes, added to the curre

Localtime minutes before or after

2003-08-17 Thread Pablo Fischer
Hi! Im looking for a module (or way) to add N minutes to localtime, for example, I have: 030817145 That localtime returns me: Sun Aug 17 14:05:21 2003 However in some parts of my code I need to get another date, and I only have: 030817145 and that I need the time in 10 minutes before/after, ho