ts-7000
[Top] [All Lists]

Re: [ts-7000] Re:TS7250 ..RTC

To:
Subject: Re: [ts-7000] Re:TS7250 ..RTC
From: Jim Jackson <>
Date: Sat, 30 Dec 2006 19:31:18 +0000 (GMT)


On Sat, 30 Dec 2006, Laks wrote:

> Hi Peter / Markus, When i tried
> strftime(stringbuf,sizeof(stringbuf),"%c",Timenow); the TS7250 PROGRAM
> GET crashed with fatal error (it displays the register contents of the
> processor
>
> but when try with :%H:%M  it prints some unrelavant data
> but program is not crashing??

you don't tell what Timenow is, and how you got the value. If you look at
the man page for strftime, the 4th paramater has to be a ptr to a struct
tm, often returned by a call to the localtime or gmtime functions.

Try this article to get a handle on how the time functions can be used....

http://www.quepublishing.com/articles/article.asp?p=23618&seqNum=8&rl=1

Jim


>
> -laks



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU