Possible Duplicate:
Best way to convert epoch time to “real” date/time
I need to write a small function in C/C++ which will take epoch time stamp and time-zone as input and return "hour" part of that time-stamp. Please help.
Possible Duplicate:
Best way to convert epoch time to “real” date/time
I need to write a small function in C/C++ which will take epoch time stamp and time-zone as input and return "hour" part of that time-stamp. Please help.
If you're talking about parsing some text into a time then extracting the hour, getdate()
is likely what you're looking for.