Convertion From "epoch time"

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Hi, I'm having a big problem here. We are going to have
someone send us an XML file. Which contain 2 fields with
Epoch time. Is there a function in .NET or anything which
can convert the Epoch time to human readable form?

Thanks in advance.

Tony
 
int t= 1070390676; // value of time_t
System.DateTime dt= new System.DateTime(1970,1,1).AddSeconds(t);

Be careful of timezones.
 
Back
Top