I'm working on simple C program to experiment with pipes. All it does it take a line from the keyboard, prepend it with a time stamp and write it to a file. A call to the time() function will deliver the time. I could use it as is, it's just a big integer. It would be nice if you could format it as a calendar date and time. I'm looking at the appendix of my C programming manual and there are calls for converting time from this format and writing the time in that format, but there doesn't seem to be one that will do what I want.
time_t time(time_t *tloc);
There are basically two ways of dealing with time. One way is to use a big integer to store the number of seconds since the beginning (which varies depending on what planet you live on) and the other is to break the time into days, months, seconds and mintues, etc. and store all these various values in a data structure.
time_t mktime(struct tm *tp);
struct tm *gmtime(const time_t *tp);
Being able to read is fundamental to getting along in today's world, and being able to pick out minuscule differences is a useful skill to have if you are programming computers. And here I detected two failures to detect differences in two days. It might be distressing if I wasn't immune to self-criticism.