[c] How to get the date and time values in a C program?