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
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
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
;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&
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:
> -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
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
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
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
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
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
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);
[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
[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
/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
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
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
##
##
###
### FUNCTION NAME
### --
### DateMinusX()
###
### PURPOSE:
###
### Return a date that is X number of days ago
###
### RETURN VALUE:Comment:
###
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
19 matches
Mail list logo