![]() |
| | #1 |
| Registered User Join Date: Jan 2002
Posts: 15
| FAQ: How do i display current time and date ?
__________________ Davie |
| davie_scotland is offline |
| | #2 |
| Code Goddess Join Date: Sep 2001
Posts: 9,661
| Code: #include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
time_t now;
time(&now);
printf("%s", ctime(&now));
return EXIT_SUCCESS;
}
__________________ My best code is written with the delete key. |
| Prelude is offline |
| | #3 |
| Registered User Join Date: Jan 2002
Posts: 15
| Cheers Cheers I'll get that in my program right away thanks Davie
__________________ Davie |
| davie_scotland is offline |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checking array for string | Ayreon | C Programming | 87 | 03-09-2009 03:25 PM |
| Sending an email in C program | Moony | C Programming | 28 | 10-19-2006 10:42 AM |
| Read and set\change system time | Hexxx | C++ Programming | 9 | 01-02-2006 07:11 AM |
| Help: Display time and date | stansu | C++ Programming | 5 | 08-22-2003 02:27 PM |