Re: [Plplot-devel] Example 29 and mktime

2008-07-18 Thread Alan W. Irwin
On 2008-07-18 10:12+0100 Andrew Ross wrote: > > On Thu, Jul 17, 2008 at 07:47:51PM -0700, Alan Irwin wrote: >> [...]Thanks very much, Terrence, for that bit of history which is confirmed >> in >> the body of >> >> http://en.wikipedia.org/wiki/British_Summer_Time >> >> There just doesn't seem to b

Re: [Plplot-devel] Example 29 and mktime

2008-07-18 Thread Andrew Ross
On Thu, Jul 17, 2008 at 07:47:51PM -0700, Alan Irwin wrote: > On 2008-07-18 01:22- [EMAIL PROTECTED] wrote: > > >Hi, > > > > > >Alan W. Irwin wrote: > >>On 2008-07-17 22:51+0100 Andrew Ross wrote: > >> > >>>Actually, while checking the various languages I found a problem with my > >>>approach

Re: [Plplot-devel] Example 29 and mktime

2008-07-17 Thread Alan W. Irwin
On 2008-07-18 01:22- [EMAIL PROTECTED] wrote: > Hi, > > > Alan W. Irwin wrote: >> On 2008-07-17 22:51+0100 Andrew Ross wrote: >> >>> Actually, while checking the various languages I found a problem with my >>> approach. Obviously my linux system is missing daylight saving >>> information for 1

Re: [Plplot-devel] Example 29 and mktime

2008-07-17 Thread keats73-plplot
Hi, Alan W. Irwin wrote: > On 2008-07-17 22:51+0100 Andrew Ross wrote: > >> Actually, while checking the various languages I found a problem with my >> approach. Obviously my linux system is missing daylight saving >> information for 1970. Calling >> >> t1 = 0; >> tm = *gmtime(&t1); >> t2 = mkti

Re: [Plplot-devel] Example 29 and mktime

2008-07-17 Thread Alan W. Irwin
On 2008-07-17 22:51+0100 Andrew Ross wrote: > Actually, while checking the various languages I found a problem with my > approach. Obviously my linux system is missing daylight saving > information for 1970. Calling > > t1 = 0; > tm = *gmtime(&t1); > t2 = mktime(&tm); > toff = (PLFLT) difftime(t1,

Re: [Plplot-devel] Example 29 and mktime

2008-07-17 Thread Andrew Ross
On Fri, Jul 11, 2008 at 08:18:39AM -0700, Alan Irwin wrote: > On 2008-07-10 14:57-0700 Alan W. Irwin wrote: > > > Hi Andrew: > > > > Jerry's recent commit message for Ada example 29 inspired me to investigate > > further, and indeed the fortran (and presumably the rest of the non-C) > > examples

Re: [Plplot-devel] Example 29 and mktime

2008-07-15 Thread Arjen Markus
Could somebody with Windows access try example 29? That example only uses POSIX compliant time functions like mktime and difftime, but I am not sure whether the Windows C library provides those or not (or even supplies them under a different name). Hi Alan, I looked into example

Re: [Plplot-devel] Example 29 and mktime

2008-07-15 Thread Arjen Markus
Werner Smekal wrote: Hi, Could somebody with Windows access try example 29? That example only uses POSIX compliant time functions like mktime and difftime, but I am not sure whether the Windows C library provides those or not (or even supplies them under a different name). example 2

Re: [Plplot-devel] Example 29 and mktime

2008-07-12 Thread Werner Smekal
Hi, > Could somebody with Windows access try example 29? That example only uses > POSIX compliant time functions like mktime and difftime, but I am not sure > whether the Windows C library provides those or not (or even supplies them > under a different name). example 29 compiles nicely on Windo

Re: [Plplot-devel] Example 29 and mktime

2008-07-11 Thread Andrew Ross
Alan, I spent some time looking for a nice portable solution and failed to find one. This was the best I could come up with. I'm glad you've independently come to the same conclusion. I will add checking the java and octave versions of example 29 to my to-do list. Andrew On Fri, Jul 11, 2008

Re: [Plplot-devel] Example 29 and mktime

2008-07-11 Thread Alan W. Irwin
On 2008-07-10 14:57-0700 Alan W. Irwin wrote: > Hi Andrew: > > Jerry's recent commit message for Ada example 29 inspired me to investigate > further, and indeed the fortran (and presumably the rest of the non-C) > examples are an hour out compared to the C example. > > For example, in python > > c

Re: [Plplot-devel] Example 29 and mktime

2008-07-10 Thread Jerry
BTW, 1_133_395_200.0 is the number of seconds since January 1, 1970. Not sure why the comment in the C code for example 29 mentions 1900. Jerry On Jul 10, 2008, at 2:57 PM, Alan W. Irwin wrote: > Hi Andrew: > > Jerry's recent commit message for Ada example 29 inspired me to > investigate > fu

[Plplot-devel] Example 29 and mktime

2008-07-10 Thread Alan W. Irwin
Hi Andrew: Jerry's recent commit message for Ada example 29 inspired me to investigate further, and indeed the fortran (and presumably the rest of the non-C) examples are an hour out compared to the C example. For example, in python calendar.timegm((2005,12,1,0,0,0)) returns 1133395200 which