now() and arithmetic

Bengt Kleberg eleberg@REDACTED
Mon May 6 12:40:22 CEST 2002


> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Date: Mon, 6 May 2002 10:58:25 +0200
> From: Matthias Lang <matthias@REDACTED>
...deleted
 
> Digging deeper: the value now() returns is based on
> sys_gettimeofday(), which, for all unix implementations, is a call to
> gettimeofday with a NULL second argument. Under linux that means TZ
> does not affect it. I'd be surprised if that wasn't so for other
> unices. No idea what VxWorks and Windows do. As far as I can see

According to the unix manual (www.opengroup.org), gettimeofday()s second 
argument should always be a null pointer.


bengt




More information about the erlang-questions mailing list