2023-08-09 05:37 AM - edited 2023-08-09 05:39 AM
Hello everyone,
In my sample project I have created, RTC does not perceive certain months as 31 days. Although it is 31 days in July, October, December, I took the same result in my essays with a code sample with an RTC code.I don't have problems in January, March, and August.
What are your ideas?
July 30 -> 01 august (Problem)
Func:
Card I used: F407VG 168mhz
Solved! Go to Solution.
2023-08-10 06:07 AM - edited 2023-08-10 06:07 AM
Did you fix your code?
Not sure what you're looking for here. The off-by-one error was clearly the issue.
2023-08-09 05:59 AM
Sure you're not setting the month off by 1? What is your code to set the date to july 30th?
2023-08-09 06:05 AM - edited 2023-08-09 06:07 AM
I set up RTC for the time I wanted and then read it.
2023-08-09 06:41 AM
July is 7, not 6.
2023-08-10 02:09 AM
My problem is still going on.
2023-08-10 02:43 AM
With MONTH = 7?
JW
2023-08-10 06:07 AM - edited 2023-08-10 06:07 AM
Did you fix your code?
Not sure what you're looking for here. The off-by-one error was clearly the issue.
2023-08-10 11:10 PM
July = 6(Including zero)
2023-08-10 11:13 PM - edited 2023-08-10 11:15 PM
My problem was solved, it was wrong to start the months, including zero.Thanks. I'm sorry for my bad english.