Subj : Perl::JAM (was: txt2pkt.pl) To : mark lewis From : Maurice Kinal Date : Tue Feb 22 2005 05:38 pm Hey mark! Feb 22 18:16 05, mark lewis wrote to Johan Billing: ml> my first question is how does the OS know what to set gmttime to? ml> AFAIK, it cannot without some other setting like TZ and without being ml> told if the BIOS clock is running localtime or gmttime... You must be thinking of other OS's, not anything UNIXie. The Perl POSIX module seems to be able to figure it out, or at least running on a Linux system. I tried it on both a UTC and a PST set machine and it adjusted itself accordingly. A call to gmtime on either one produced the proper results. That is another plus for using the POSIX module methinks. I have no idea how it would work on any other OS but then that doesn't matter since even if I use this with the XML-RPC server the "right" solution will be found seeing as the server is running on Linux. It won't matter what the client is using, unless it is programmed into the functionality of the server, and then the client will have to supply it (the localtime wrt it's setting or zone). I think UTC is definetly the way to go. Simplifies everything no matter what the localtime is set to on any machine. If the target can't convert or doesn't wish to then assume UTC. Simple. Life is good, Maurice --- Msged/LNX 6.1.2 * Origin: Coffin Point - Ladysmith, BC Canada (1:153/401.1) .