get current time and convert it to string
    Abby (J.P.) 
    the.ueabraham at laposte.net
       
    Thu Apr 27 09:18:12 PDT 2006
    
    
  
Derek Parnell wrote:
> On Fri, 28 Apr 2006 00:37:28 +1000, Abby (J.P.) 
> <the.ueabraham at laposte.net> wrote:
> 
> 
> 
>>      char[] thetime = toTimeString(UTCtoLocalTime(getUTCtime()));
> 
> It isn't documented but the input to toTimeString() is assumed to be 
> UTC, and it outputs a Local time string.
> 
> --Derek Parnell
> Melbourne, Australia
Oh I see, so it adds two times the GMT+2 shift !
GMT+2 (UTCtoLocalTime()) + GMT+2 (toTimeString()) = GMT+4 !
Thanks :)
--
Abby
    
    
More information about the Digitalmars-d-learn
mailing list