English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
.-
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-24 (11:26)
From: Anastasia Gornostaeva <ermine@e...>
Subject: Re: [Caml-list] .-
On Fri, Dec 24, 2004 at 12:07:35PM +0100, Alexander Fuchs wrote:

> Form the manual:
> 
> gmtime : Assumes UTC (Coordinated Universal Time), also known as GMT.
> 
> mktime : The tm argument is interpreted in the local time zone.
> 
> So, actually you compare GMT with your local time zone, which in my case 
> (Germany) returns 0 for the above example.
> 
> 
> Try localtime instead of gmtime:
> 
> localtime : Assumes the local time zone.
> 
Great, thank you. Now it works as expected.

ermine