Go Down

Topic: Time Library added to Playground (Read 39 times) previous topic - next topic


Whats the way to get the clock from the PC using vb 2008 through the serial port ? is there a simple function for that ? :-/


After reading more of the previous posts i understood the NewTimeSerial.pde
code , and Thank you [size=12]mem[/size]  You are a great person,
now i will try to send the time from vb  ;D


Thanks for posting this code.  I've added a couple of macros you may want to consider including to Time.h:
Code: [Select]

#define DAYS_PER_YEAR(_year_) (365 + LEAP_YEAR(_year_))
#define SECS_PER_YEAR(_year_) ((DAYS_PER_YEAR(_year_)) * SECS_PER_DAY)

This should be backward compatible.

Thanks again,

Go Up