-
@id1402 From your question you posted on a pull request (not good practice BTW, ask here and reference the pull request is the proper way to do it). If you have values for month/day/year and you want to instance a RtcDateTime, it is done like this...
if you have no plans to use
If you have a string like you formatted ("Apr 25 2023, 00:28:09"); then you will have to parse the string into the values as there is no automatic parser for all the date/time formats that exists. There is currently only one method, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Sorry.
What variable type? RtcDateTime myTime(uint16_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)? Thank you for the library and your help! |
Beta Was this translation helpful? Give feedback.
-
So the time cannot be set to wrong values?
I ask because i make:
So it's good to know the appropriate data type for the used variables. |
Beta Was this translation helpful? Give feedback.
-
That's great! Thank you. |
Beta Was this translation helpful? Give feedback.
To make sure the time is correct, check it like...