Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time date

Status
Not open for further replies.

jl3574

Programmer
Joined
Jun 5, 2003
Messages
76
Location
CA
help, i need to find the time interval in seconds of a selected date from the time now to the selected date.
ex. if i the selected time is wednesday 1hr 23:min 2:sec
i need to find the time(seconds) from now to that date
thx :)
 
time(0) will give you the current time in seconds. mktime() can be used to produce a time in seconds from a struct tm. you must compensate for the timezone offsets IF the time you are referencing is not on the local machine (ex., if you want to know the # of seconds between "now" in Austin, TX and 1:30 AM July 29, 2003 in London, UK).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top