By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.

Using unixtime

P: n/a
Is there any method in .NET that returns the number of seconds since
januaty 1st 1970 (unix time) or i should create my own?
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <eB**************@TK2MSFTNGP10.phx.gbl>, nv***@mandic.com.br
says...
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.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.