Storing RTC values in variables

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jameschin
 
Posts: 65
Joined: Sun Jan 05, 2014 8:04 pm

Storing RTC values in variables

Post by jameschin »

How do you take the values from the Adafruit RTC and store them in variables?

(future.hour(), DEC)
(future.minute(), DEC)
(future.second(), DEC)

These specifically.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Storing RTC values in variables

Post by adafruit_support_rick »

Just assign them:

Code: Select all

int hour = future.hour();
int minute = future.minute();
int second = future.second();

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

Return to “General Project help”