RE: Date calculations and daylight saving

2004-11-22 Thread John Bruin
Peter - thanks very much. I'll use the GMT trick. John > -Original Message- > From: Peter Scott [mailto:[EMAIL PROTECTED] > Sent: 23 November 2004 04:14 > To: [EMAIL PROTECTED] > Subject: RE: Date calculations and daylight saving > > In article <[EMAIL PRO

RE: Date calculations and daylight saving

2004-11-22 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John Bruin) writes: >> From: Bob Showalter [mailto:[EMAIL PROTECTED] >> If you switch from daylight savings time at 2am on Sunday, >> October 31, then the difference between the local times of >> noon on Saturday the 30th and noon on Sunday the

RE: Date calculations and daylight saving

2004-11-22 Thread Bob Showalter
John Bruin wrote: > ... > Yes this is exactly what I am try to do. I am working out how long > jobs take to complete and I need 1 day to equal 24 hrs and a week to > equal 168 hrs regardless of daylight saving change overs. We used to > use a spreadsheet for this calculation and that's what we're t

Re: Date calculations and daylight saving

2004-11-21 Thread Michael David
;Stephen Liu" <[EMAIL PROTECTED]> To: "'Perl Beginners List'" <[EMAIL PROTECTED]> Sent: Monday, November 22, 2004 3:11 PM Subject: RE: Date calculations and daylight saving Hi John, Please advise where can I find following modules Date::Calc date::parse I can&

RE: Date calculations and daylight saving

2004-11-21 Thread Stephen Liu
u --- John Bruin <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > > From: Bob Showalter > [mailto:[EMAIL PROTECTED] > > Sent: 20 November 2004 02:35 > > To: 'John Bruin'; 'Perl Beginners List' > > Subject: RE:

RE: Date calculations and daylight saving

2004-11-21 Thread John Bruin
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED] > Sent: 20 November 2004 02:35 > To: 'John Bruin'; 'Perl Beginners List' > Subject: RE: Date calculations and daylight saving > > John Bruin wrote: > > I have a script

RE: Date calculations and daylight saving

2004-11-19 Thread Bob Showalter
John Bruin wrote: > I have a script that calculates difference between dates and it works > well. However if the 2 dates straddle our daylight saving times > (March, October) then the result is either plus or minus an hour > compared to the expected result. Are you subtracting "dates" or "local ti

Re: Date calculations and daylight saving

2004-11-18 Thread Gunnar Hjalmarsson
John Bruin wrote: I have a script that calculates difference between dates and it works well. However if the 2 dates straddle our daylight saving times (March, October) then the result is either plus or minus an hour compared to the expected result. I am using date::parse (which uses Time::Local) t

Re: date calculations

2004-08-18 Thread Gunnar Hjalmarsson
Jeff 'japhy' Pinyan wrote: Well, if you subtract 86400 seconds from the current time to *attempt* to get the same time a day earlier, you might sometimes fail, such as at 11:55pm on the day that daylight savings time ended. If you subtract 86400 seconds (24 hours), you will NOT be at 11:55pm on th

Re: date calculations

2004-08-18 Thread Jeff 'japhy' Pinyan
On Aug 18, Zeus Odin said: >One small thing. How can today and yesterday have the same date? Their very >definitions denote that these two days are different (except for specific >calendar changes, like the readjustment of the calendar to increate >precision). Well, if you subtract 86400 seconds

Re: date calculations

2004-08-18 Thread Zeus Odin
One small thing. How can today and yesterday have the same date? Their very definitions denote that these two days are different (except for specific calendar changes, like the readjustment of the calendar to increate precision). If you stick with "Today" and "Yesterday", it might be worth conside

Re: date calculations

2004-08-17 Thread Gunnar Hjalmarsson
Charles K. Clarkson wrote: [EMAIL PROTECTED] wrote: Gunnar Hjalmarsson wrote: Personally I don't know which of all the date related modules that would fit best, but I'm sure others do. I for one wouldn't use any module: my $time = time; sub mydate { my $days = (shift or 0);

RE: date calculations

2004-08-17 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: : : : Personally I don't know which of all the date related : : modules that would fit best, but I'm sure others do. I : : for one wouldn't use any module: : : : : my $time = time; : : : : sub mydate

RE: date calculations

2004-08-17 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: : : : Personally I don't know which of all the date related modules : : that would fit best, but I'm sure others do. I for one wouldn't : : use any module: : : : : my $time = time; : : : : sub m

Re: date calculations

2004-08-17 Thread DBSMITH
/17/2004 01:46 PM To: [EMAIL PROTECTED] cc: Subject: Re: date calculations David Greenberg wrote: > [EMAIL PROTECTED] wrote: >> If I wanted to subtract 1 from a date on the 1st of any month >> what module will reflect the correct date? For

Re: date calculations

2004-08-17 Thread DBSMITH
OhioHealth IT UNIX / TSM / EDM Teams Gunnar Hjalmarsson <[EMAIL PROTECTED]> 08/17/2004 01:46 PM To: [EMAIL PROTECTED] cc: Subject: Re: date calculations David Greenberg wrote: > [EMAIL PROTECTED] wrote: >> If I wanted to subtract 1 fro

Re: date calculations

2004-08-17 Thread Gunnar Hjalmarsson
David Greenberg wrote: [EMAIL PROTECTED] wrote: If I wanted to subtract 1 from a date on the 1st of any month what module will reflect the correct date? For example, system time is 09.01.04 and I want data from 08.31.04, I would have to subtract 1 day. Which module do I need to install? Date::Man

RE: date calculations

2004-08-17 Thread Yacketta, Ronald
## ## ### ### FUNCTION NAME ### -- ### DateMinusX() ### ### PURPOSE: ### ### Return a date that is X number of days ago ### ### RETURN VALUE:Comment: ###

Re: date calculations

2004-08-17 Thread David Greenberg
Date::Manip from CPAN -David On Tue, 17 Aug 2004 12:50:16 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > All, > > If I wanted to subtract 1 from a date on the 1st of any month what module > will reflect the correct date? For example, system time is 09.01.04 and I > want data from 08.31.0