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.
1 parent ba23fef commit 0a1e3a0Copy full SHA for 0a1e3a0
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