N Natan Feb 4, 2004 #1 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?
P Patrick Steele [MVP] Feb 4, 2004 #2 Is there any method in .NET that returns the number of seconds since januaty 1st 1970 (unix time) or i should create my own? Click to expand... 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.
Is there any method in .NET that returns the number of seconds since januaty 1st 1970 (unix time) or i should create my own? Click to expand... 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.