Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <[url=http://cplusplus.com/reference/clibrary/ctime/]time.h[/url]>
#include <stdio.h>
[b]int[/b] main([b]void[/b])
{
[url=http://cplusplus.com/reference/clibrary/ctime/time_t/]time_t[/url] now=[url=http://cplusplus.com/reference/clibrary/ctime/time/]time[/url](NULL);
[b]int[/b] sec=now%60;
printf([i]"Current seconds : %d\n"[/i],sec);
}
#include <[url=http://cplusplus.com/reference/clibrary/ctime/]time.h[/url]>
#include <stdio.h>
[b]int[/b] main([b]void[/b])
{
[url=http://cplusplus.com/reference/clibrary/ctime/time_t/]time_t[/url] now=[url=http://cplusplus.com/reference/clibrary/ctime/time/]time[/url](NULL);
struct [url=http://cplusplus.com/reference/clibrary/ctime/tm/]tm[/url] *nows=[url=http://cplusplus.com/reference/clibrary/ctime/localtime/]localtime[/url](&now);
[b]int[/b] sec=nows->tm_sec;
printf([i]"Current seconds : %d\n"[/i],sec);
}