From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,27872f554944093c,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,27872f554944093c,start X-Google-Attributes: gidfee84,public From: Jean-Claude Magras Subject: strftime problems? Date: 1998/01/30 Message-ID: <34D24759.F2815882@texas.net>#1/1 X-Deja-AN: 320671632 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Texas Networking, Inc. Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1,comp.unix.programmer Greetings, I am contributing to a known freeware project and I am having trouble with strftime (on Digital UNix 3.2).. I use the "%T: meaning HH:MM:SS is the output string. I have checked the contents of the struct tm I pass in and they seem valid (that is the mt_hour/mt_min/mt_sec fields seem valid but strfime() usually reports "00:00:00". It sometimes puts an asterisk or slash in the hours field or occassionally a 12 or 3 but its never correct. I do call tzset(). Thanks in advance. Any help appreciated, J.C. Magras -- Unix Software Engineer looking for C++/UNIX/Motif/Perl/Tk/Flex Software Engineering position **NOW**. Currently in Austin at (512) 672-5778/magrasjc@texas.net. have Answering machine.