Hi, that's not bad but without leap seconds and without daylight saving time, so the difference between that time and the local time is at minimum 10 s because of the leap seconds and at maximum 3590 s because of the daylight saving time ( http://cr.yp.to/proto/utctai.html ). It's not complicated to implement the daylight saving time but for the leap seconds you need a lookup table because they can't be calculated.
Regards, Rolf [email protected] schrieb am 08.07.05 19:05:21: > > Thanks! > > >Hi, > > > >> I've been Googling and can't find it -- can you give a link? > > > >Here you go: > >http://www.jbox.dk/sanos/source/lib/time.c.html > > > >It needs a bit of patching to work with msp430, but not much. I also recall a > >couple of lines were truncated, probably due to c->html conversion. > >I provided local static buffers instead of the ones from the kernel, e.g. > >replace: > > char *ascbuf = gettib()->ascbuf; > >with > > static char ascbuf[xxx]; > > > >Locate *timer thingy in no-init memory. Increment it from 1-second interrupt. > >I used "reserve" (?) keyword for main() to get memory for it. Make > >access to it > >atomic since it is 32-bit (2 word) value, > >e.g. dint(), get *timer, eint(). > >Fix your includes. > >There might have been something else, I do not recall.. > > > >Sergei > > > > > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > >July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > >core and dual graphics technology at this free one hour event hosted by HP, > >AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > >_______________________________________________ > >Mspgcc-users mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > -- > ______________________________________ > Andrew E. Kalman, Ph.D. [email protected] > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
