[Gllug] OT: Tcl and timezone info

Hong Chyr chyryh at linuxmail.org
Fri Oct 24 23:33:17 UTC 2003


I think the localtime commands are still part of TclX, since I tried them out on core Tcl 8.4 and the shell returned an unknown command error.


Hong

----- Original Message -----
From: Tethys <tet at createservices.com>
Date: Thu, 23 Oct 2003 16:18:47 +0100
To: Greater London Linux Users Group <gllug at linux.co.uk>
Subject: Re: [Gllug] OT: Tcl and timezone info 


"Hong Chyr" writes:

>I'm interested to program a world clock application using Tcl/Tk,
>which will ultimately run on both Windoze and Linux. Any pointers
>to where I can get more information about timezone, daylight saving
>calculations, etc?

Tcl has a reasonably complete 1:1 mapping to the libc time functions[1].
So just use localtime, strftime etc., as you would from a C program.

Tet

[1] Are these in core Tcl yet, or still part of TclX?

-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list