Thanks for the response. I have been using Date::Pcalc but I guess what I have been unable to find is an example of how to get the localtime from the system in GMT format, with the offset already applied. As I understand as the local time falls back an hour or springs ahead the offset will change and I would like to find a way for my program to automagiclly deal with it. If Pcalc can do this then I haven't been able to figure it out.
thanks -----Original Message----- From: Harter, Douglas [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 11:58 AM To: Steve Main; [EMAIL PROTECTED] Subject: RE: dealing with dates Do a search on www.cpan.org for Date::Pcalc. This is a whole series of Perl functions dealing with date calculations. (And I didn't even write them.) > -----Original Message----- > From: Steve Main [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 28, 2003 1:15 PM > To: [EMAIL PROTECTED] > Subject: dealing with dates > > > > > Hello list, > > I am having a problem coming up with a solution to compare > and find the > difference between two dates. > > One of the dates is a GMT date while the other is PST(or PDT) so my > first > Problem is converting the local date to GMT which is fine > unless I want > to automagically "detect" the hour back or ahead. So I guess my > question is does anyone have a slick way to convert a date to > GMT and a > way to get the number of days between the two dates? > > Thanks > > Steve > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]