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;
}
Related posts:
- Using the Ctime function Using the Ctime function This example shows a sample usage...
- Difftime example This shows the difftime function and in this case we...
- CHAPTER 5: Pointers and Structures CHAPTER 5: Pointers and Structures As you may know, we...
Related posts brought to you by Yet Another Related Posts Plugin.



















































Post a comment