T
Tony
//Tony
Something like:
public static string Convert(int secs)
{
return
DateTime.Now.Date.AddSeconds(secs).ToString("HH:mm:ss");
}
Maybe that does not hit the nail on the head.
A date in Seconds is usually a unix timestamp with seconds since epoch.
new DateTime(1970,1,1).AddSeconds(secs).ToString("yyyy-mm-dd HH:mm:ss");
should do this.
That is very common. And it could very well be the case here as well.
I just did not see it as a good fit for this question.
Seconds since start of 1970 is usually since start of 1970 GMT, so
you would need to do something to handle timezones other than GMT.