We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 408051a + 0a1e3a0 commit fe1d6b0Copy full SHA for fe1d6b0
platform/mbed_rtc_time.h
@@ -40,10 +40,10 @@ extern "C" {
40
* int main() {
41
* set_time(1256729737); // Set RTC time to Wed, 28 Oct 2009 11:35:37
42
*
43
- * while(1) {
+ * while (true) {
44
* time_t seconds = time(NULL);
45
46
- * printf("Time as seconds since January 1, 1970 = %d\n", seconds);
+ * printf("Time as seconds since January 1, 1970 = %u\n", (unsigned int)seconds);
47
48
* printf("Time as a basic string = %s", ctime(&seconds));
49
0 commit comments