RobertAKARobin
RobertAKARobin

Reputation: 4258

What kind of a date format is this? 437432903.96807599067687988281

Somehow 437432903.96807599067687988281 translates to November 11, 2014, 4:08pm, but I'm not sure how.

Edit: The context is I'm trying to export data from Thyme, a menubar timer for Mac. It's recorded in an XML file called storedata. For example:

<object type="SESSION" id="z102">
    <attribute name="seconds" type="int32">43</attribute>
    <attribute name="minutes" type="int32">10</attribute>
    <attribute name="hours" type="int32">4</attribute>
    <attribute name="date" type="date">437432903.96807599067687988281</attribute>
</object>

Upvotes: 3

Views: 301

Answers (1)

Paul R
Paul R

Reputation: 212949

Apple's OS X Objective C application framework Cocoa has a date/time class NSDate which uses an epoch date of January 1st 2001. So a timestamp of 437432903.96807599067687988281 seconds, when added to January 1st 2001, gives you the correct date and time: 9:08:23 pm GMT | Tuesday, November 11, 2014

Upvotes: 4

Related Questions