Subscribe via Email

Enter your email address to subscribe and receive notifications of new content by email.

Using the Ctime function

Using the Ctime function

This example shows a sample usage for the Ctime function to display the date and time.

/*using the ctime function*/

#include <stdio.h>
#include <time.h>

int main()
time_t tm;
tm = time(NULL);
return 0;

This was tested on Visual C++ 6 and LCC Win 32

FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInWhatsAppBibSonomyDeliciousDiggDiigoSina WeiboWordPressBlogger PostShare

Leave a Reply





You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>