Is System.gettimeoday() some getto version of gettimeofday(), of is the documentation missinformed? My checkout seems to have the wrong system module, so I can't check.
Looks like that to me:
time();System.gettimeofday();
(1) Result: 1039193137 (2) Result: ({ /* 4 elements */ 1039193137, 451164, 0, 0 })
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-12-06 17:41: Subject: gettimeoday
Is System.gettimeoday() some getto version of gettimeofday(), of is the documentation missinformed? My checkout seems to have the wrong system module, so I can't check.
/ Peter Bortas
System.Time()->sec;
(2) Result: 1039193222
System.Time()->usec;
(3) Result: 527634
/ Per Hedbor ()
Previous text:
2002-12-06 17:46: Subject: gettimeoday
Looks like that to me:
time();System.gettimeofday();
(1) Result: 1039193137 (2) Result: ({ /* 4 elements */ 1039193137, 451164, 0, 0 })
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
| > gettimeofday(); | Compiler Error: 1:'gettimeofday' undefined.
?
/ Mirar
Previous text:
2002-12-06 17:41: Subject: gettimeoday
Is System.gettimeoday() some getto version of gettimeofday(), of is the documentation missinformed? My checkout seems to have the wrong system module, so I can't check.
/ Peter Bortas
I'm refering to this documentation entry: http://pike.ida.liu.se/generated/manual/modref/ex/System/gettimeoday.html
/ Peter Bortas
Previous text:
2002-12-06 18:11: Subject: gettimeoday
System.gettimeofday() calls the libc gettimeofday(). What do you mean?
/ Mirar
That seems to be correct, except that dsttime is spelled with two t's only.
System.gettimeofday();
(1) Result: ({ /* 4 elements */ 1039194179, 258571, -60, 0 })
/ Mirar
Previous text:
2002-12-06 18:13: Subject: gettimeoday
I'm refering to this documentation entry: http://pike.ida.liu.se/generated/manual/modref/ex/System/gettimeoday.html
/ Peter Bortas
Yes, and the fact that of is spelled with an f. :)
/ Peter Bortas
Previous text:
2002-12-06 18:25: Subject: gettimeoday
That seems to be correct, except that dsttime is spelled with two t's only.
System.gettimeofday();
(1) Result: ({ /* 4 elements */ 1039194179, 258571, -60, 0 })
/ Mirar
pike-devel@lists.lysator.liu.se