Adjusting the clock in gui

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
simpson21
 
Posts: 8
Joined: Sun Jan 09, 2011 12:19 am

Adjusting the clock in gui

Post by simpson21 »

I have been playing around with the RTC on the data logging shield v1 using the RTClib library trying to make it able to adjust the time with in a menu on a 20x4 lcd I have found that changing RTC.adjust(DateTime(__DATE__, __TIME__)) with this RTC.adjust(DateTime("Jan 21 2013", "05:05:05") works but I cant find a way to change out whats in the quotes for anything that I can add or subtract from.

If someone has any ideas, hits, tips, or code they could share it would be much appreciated

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adjusting the clock in gui

Post by adafruit_support_bill »

The DateTime object is what you want. Look at the "dateCalc" example in RTCLib.

User avatar
simpson21
 
Posts: 8
Joined: Sun Jan 09, 2011 12:19 am

Re: Adjusting the clock in gui

Post by simpson21 »

Ah Thank you. I was some how missing that example but a quick redownload of the library set me on the right track.

to share what Im building: I have an old 88 Jeep YJ and had an idea of putting an arduino in it to help control things, upon researching my idea and ways to do it I came acrossed this http://www.edsjunk.net/EdsJunk/Blog/Ent ... NGLER.html so I started working and coding to come up with a similar end result

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”