logo       

Re: current time in xsb: msg#00413

Subject: Re: current time in xsb
Thanks! Missed it.

It is a little lacking, however, because it gives UTC time and
does not indicate whether daylight saving time is in effect and what is the
time zone. So, it is impossible to know what the actual local time is
(unless there is some other predicate somewhere).
The implementation in auxlry.c is using gmtime/GetSystemTime, but it is
better to use POSIX localtime, which is the same in Unix and Windows.
It gives all the necessary info.


        cheers
          --michael  

> On 2007/10/01, at 19:35, Michael Kifer wrote:
> 
> > I did not find a predicate to check the current time in XSB.
> > Is there any? (Not counting the Unix 'date', which is not good  
> > enough.)
> 
> :- import datime/1 from standard.
> 
> Paulo
> 
> 
> -----------------------------------------------------------------
> Paulo Jorge Lopes de Moura
> Dep. of Computer Science, University of Beira Interior
> 6201-001 Covilhã, Portugal
> 
> Office 4.3  Ext. 3257
> Phone: +351 275319891 Fax: +351 275319899
> Email: <mailto:pmoura-E87GkkYR1M9eoWH0uzbU5w@xxxxxxxxxxxxxxxx>
> 
> Home page: <http://www.di.ubi.pt/~pmoura>
> Research: <http://logtalk.org/>
> -----------------------------------------------------------------
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Xsb-development mailing list
> Xsb-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xsb-development
> 
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


<Prev in Thread] Current Thread [Next in Thread>