Using unixtime

  • Thread starter Thread starter Natan
  • Start date Start date
N

Natan

Is there any method in .NET that returns the number of seconds since
januaty 1st 1970 (unix time) or i should create my own?
 
Is there any method in .NET that returns the number of seconds since
januaty 1st 1970 (unix time) or i should create my own?

Nothing built in. You should be able to create a DateTime for Jan 1,
1970 and subtract it from DateTime.Now to get a TimeSpan.
 
Back
Top