Re: What does mktime return????

2019-12-18 Thread Grant Gainey
On Wed, Dec 18, 2019 at 1:46 PM John Pilkington wrote: > On 18/12/2019 15:12, Mark C. Allman wrote: > > > > The month value range is 0 to 11, not 1 to 12. You're calculating > > 12/30/2019 at 23:59:59 to 01/01/2020 at 00:00:00, or 86401 seconds. > > > > This is in accord with 'man mktime' but it

Re: What does mktime return????

2019-12-18 Thread John Pilkington
On 18/12/2019 15:12, Mark C. Allman wrote: On 12/18/19 9:17 AM, Jouk Jansen wrote: Hi All, I'm strugling with the C-function mktime. According to the man-pages it returns "secondsĀ  sinceĀ  the Epoch". I tried to use this functions to get differnces from two date-times , but was could not interpr

Re: EXTERNAL: Re: What does mktime return????

2019-12-18 Thread Wells, Roger K. via users
On 12/18/19 10:24 AM, Walter H. wrote: Hello, I tried your programme on my system (other linux distribution), and got the same result; even on windows the same results; but this is interesting # date --date="Dec 1 00:00:00 2019" +"%s" 1575154800 # date --date="Nov 30 23:59:59 2019" +"%s" 15751

Re: What does mktime return????

2019-12-18 Thread Walter H.
Hello, I tried your programme on my system (other linux distribution), and got the same result; even on windows the same results; but this is interesting # date --date="Dec 1 00:00:00 2019" +"%s" 1575154800 # date --date="Nov 30 23:59:59 2019" +"%s" 1575154799 there you have this 1 second d

Re: What does mktime return????

2019-12-18 Thread Mark C. Allman
On 12/18/19 9:17 AM, Jouk Jansen wrote: Hi All, I'm strugling with the C-function mktime. According to the man-pages it returns "seconds since the Epoch". I tried to use this functions to get differnces from two date-times , but was could not interpret the result. When trying to get the diffre

What does mktime return????

2019-12-18 Thread Jouk Jansen
Hi All, I'm strugling with the C-function mktime. According to the man-pages it returns "seconds since the Epoch". I tried to use this functions to get differnces from two date-times , but was could not interpret the result. When trying to get the diffrence between 30 Nov 2019 23:59:59 and 1 Dec