X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4DF8EA79.2060404@gmail.com> Date: Wed, 15 Jun 2011 13:23:05 -0400 From: Tod User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: localtime References: <4DF8CF3D DOT 40104 AT gmail DOT com> In-Reply-To: <4DF8CF3D.40104@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 06/15/2011 11:26 AM, Tod wrote: > Hi, > > Has anything change in regards to the C localtime function since 2007? > I've got a program with a function that uses it to present the date and > time that I just changed. The time isn't appearing only the date. > > No errors, no dumps, just no time. Most bizarre. > > > TIA - Tod Incidentally, here's how I'm valuing the time. Worked with the 2007 version of cygwin1.dll (not that I'm blaming cygwin): char * getTime(char *tout) { time_t now; struct tm tim; now = time(NULL); tim = *(localtime(&now)); strftime(tout,strlen(tout),"%m/%d/%Y:%H:%M:%S",&tim); return(tout); } tout is a 128 byte character array. Thanks. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple