Adjusting the clock in gui

Tick Tock Clock Kits

Moderators: adafruit_support_bill, adafruit

Adjusting the clock in gui

Postby Simpson21 » Mon Jan 21, 2013 4:53 am

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
Simpson21
 
Posts: 8
Joined: Sat Jan 08, 2011 11:19 pm

Re: Adjusting the clock in gui

Postby adafruit_support_bill » Mon Jan 21, 2013 7:00 am

The DateTime object is what you want. Look at the "dateCalc" example in RTCLib.
User avatar
adafruit_support_bill
 
Posts: 16050
Joined: Sat Feb 07, 2009 9:11 am

Re: Adjusting the clock in gui

Postby Simpson21 » Mon Jan 21, 2013 2:17 pm

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/Entries/2011/1/24_arduino_powered_jeep_WRANGLER.html so I started working and coding to come up with a similar end result
Simpson21
 
Posts: 8
Joined: Sat Jan 08, 2011 11:19 pm


Return to Clocks

Who is online

Users browsing this forum: No registered users and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]