I am going to be programming a database that will have events set up on specific days. If its a cetain number of days prior to the event, certain actions cannot be performed.
Is there any way I can get the system time from the computer?
What can I look up in the man pages?
I will be using ANSI C.
Try asctime. That will return a string containing the day of the week, day, and year. Perhaps that's what you need.
strftime is similar to asctime, but it allows you to set your own template for the output.
Thats what I am looking for.