Categories

Subscribe via Email

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

asctime function

/*using the asctime function*/

#include <stdio.h>
#include <time.h>
int main()

{
struct tm *ptr;

time_t tm;
tm = time(NULL);
ptr = localtime(&tm);
printf(asctime(ptr));
return 0;

}

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>