void tyme(void)
{
time_t tim = time(NULL);
printf("\n\n\t\t Time: %s", ctime(&tim));
}
Hi want to be able to take the date or time out so as to append it to a transaction as it occurs in my code. Use the above to display time and date, but unsure how to actually break the time into components, eg min,hour - day,month,year. Can I put these into variables. Anyway not sure how to access them. Looked thru. lots of books with all sorts of details but none showing implementation.
Thanks,
H.



LinkBack URL
About LinkBacks



