已知秒数,小弟我想把它再转换成时间,请教有哪些函数可以用

已知秒数,我想把它再转换成时间,请问有哪些函数可以用?
这个秒数 不是通过已知的函数算的,是把十六进制数转换的,现在想再转换成日期,求高手指教

------解决方案--------------------
gmtime_s
------解决方案--------------------
time_t本身就是long,你想转那种格式的日期就找对应的转换就是
比如struct tm 就用localtime
------解决方案--------------------
探讨

time_t本身就是long,你想转那种格式的日期就找对应的转换就是
比如struct tm 就用localtime

------解决方案--------------------
struct tm 这个就可以 。。。
------解决方案--------------------
COleDateTimeSpan::SetDateTimeSpan
void SetDateTimeSpan( long lDays, int nHours, int nMins, int nSecs );

Parameters

lDays, nHours, nMins, nSecs

Indicate the date-span and time-span values to be copied into this COleDateTimeSpan object.