Alex Rivera | Logout

Parsing unix time in C#

Asked 2009-11-04T14:46:49.767
21

Is there a way to quickly / easily parse Unix time in C# ? I'm brand new at the language, so if this is a painfully obvious question, I apologize. IE I have a string in the format [seconds since Epoch].[milliseconds]. Is there an equivalent to Java's SimpleDateFormat in C# ?

Edit
Report

1 Answer

6

This is a very common thing people in C# do, yet there is no library for that.

I created this mini library https://gist.github.com/1095252 to make my life (I hope yours too) easier.

answered 2011-07-20T16:07:36.510

Your Answer