Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    The correct answer. You could use the AddMilliseconds method rather than dividing by 1000, although it makes no difference whatsoever in this case Commented Jan 14, 2011 at 2:33
  • Does the timestamp take the offset into account, or is the string supposed to mean (timestamp + offset)? My answer uses the offset in its calculation... Commented Jan 14, 2011 at 2:41
  • @BoltClock I think it's based on UTC time. Thus, after you convert it into a DateTime, you're going to have to express the offset using DateTime functionality. Commented Jan 14, 2011 at 2:43