From: tonyblaha AT juno DOT com To: djgpp AT delorie DOT com Subject: newbie: strftime Message-ID: <19980929.140919.9735.0.tonyblaha@juno.com> X-Mailer: Juno 1.49 X-Juno-Line-Breaks: 0-7,9,12,14-19 Date: Tue, 29 Sep 1998 15:12:28 EDT I'm having trouble with the strftime() function in time.h. I've copied the example directly from libc.inf: struct tm t; char buf[100]; strftime(buf, 100, "%B %d, %Y", &t); But I can't get it to work. What I wanted to do was to see what day it was, but no matter how I use strftime, everything comes out zeros. Eventually, I just used ctime() and used strstr() to search for a day in the string. (Example: If the string contained "Sun" I set day = 0, if it contained "Mon", day = 1, etc.) So, how do I use strftime correctly? Any small sample code would be appreciated. TIA, Tony Blaha ___________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]