avnish aggarwal
/
time_HelloWorld
ok
Fork of time_HelloWorld by
Revision 1:bd5a5138e372, committed 2014-02-07
- Comitter:
- avnisha
- Date:
- Fri Feb 07 17:05:27 2014 +0000
- Parent:
- 0:b3b93997a0a6
- Commit message:
- ok
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b3b93997a0a6 -r bd5a5138e372 main.cpp --- a/main.cpp Wed Feb 13 17:07:52 2013 +0000 +++ b/main.cpp Fri Feb 07 17:05:27 2014 +0000 @@ -6,14 +6,14 @@ while (true) { time_t seconds = time(NULL); - printf("Time as seconds since January 1, 1970 = %d\n", seconds); + printf("Time as seconds since January 1, 1970 = %d\r\n", seconds); - printf("Time as a basic string = %s", ctime(&seconds)); + printf("Time as a basic string = %s\r\n", ctime(&seconds)); char buffer[32]; strftime(buffer, 32, "%I:%M %p\n", localtime(&seconds)); - printf("Time as a custom formatted string = %s", buffer); + printf("Time as a custom formatted string = %s\r\n", buffer); - wait(1); + wait(60); } }