0

hi i want to create a program which will be working like a agenta,meaning a user will fill in a form with an action he wants to perform and the time he must do it and my program should pop up a window which will be trigered by his computer's clock...My problem is how my program will be able to read the date and time of ones computer

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by Ancient Dragon
0

reading date/time is simple -- just use the functions in time.h

time() returns the current date/time in seconds since 1 Jan 1970. Then if you want to know the month, day and year you need to call localtim(), which returns a structure with that info.

Edited by Ancient Dragon: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.