Notifications
Clear all

MacOSDate

18 Posts
6 Users
0 Reactions
2,517 Views
triran
(@triran)
Trusted Member
Joined: 16 years ago
Posts: 99
Topic starter  

Anyone come across the MacOSDate within the PlayCounts.plist on the iPhone?


   
Quote
(@alexc)
Reputable Member
Joined: 16 years ago
Posts: 301
 

"Mac Dates" tend to be a floating point number which is the seconds since Jan 1st 2001. Try that, see if it makes sense!


   
ReplyQuote
triran
(@triran)
Trusted Member
Joined: 16 years ago
Posts: 99
Topic starter  

I used DCode with Mac Date and got INVALID DATE. Tried knocking the end digit off then got a random date.


   
ReplyQuote
TomP
 TomP
(@tomp)
Eminent Member
Joined: 16 years ago
Posts: 36
 

As AlexC says, the Mac times tend to be from 01/01/2001 or at least with the 'Mac Absolute Time' that I have come across this was the case.

To convert the times I used a pretty basic process within excel of converting the 01/01/2001 to an epoc time (3187468800) and added this to the extracted time stamp (also in seconds). I then divided this by 86400 and formatted the cells in the dd/mm/yyyy hhmmss format. The results were manually verified using dcode and the Mac Absolute Time converter however I wanted a formula that would work within excel for multiple extracted time stamps.


   
ReplyQuote
(@alexc)
Reputable Member
Joined: 16 years ago
Posts: 301
 

I used DCode with Mac Date and got INVALID DATE. Tried knocking the end digit off then got a random date.

Could you post an example of the date format?


   
ReplyQuote
triran
(@triran)
Trusted Member
Joined: 16 years ago
Posts: 99
Topic starter  

I used DCode with Mac Date and got INVALID DATE. Tried knocking the end digit off then got a random date.

Could you post an example of the date format?

3371884758

So as you can see there is one extra digit but if i trim either side I get a random date.

The value is an integer from the playcounts plist.


   
ReplyQuote
(@alexc)
Reputable Member
Joined: 16 years ago
Posts: 301
 

Could be the old MacOS epoch which is 1904/01/01?
That gives you 2010/11/06 103918 - does that seem more reasonable?


   
ReplyQuote
triran
(@triran)
Trusted Member
Joined: 16 years ago
Posts: 99
Topic starter  

Could be the old MacOS epoch which is 1904/01/01?
That gives you 2010/11/06 103918 - does that seem more reasonable?

Indeed!


   
ReplyQuote
(@alexc)
Reputable Member
Joined: 16 years ago
Posts: 301
 

(Weirdly this epoch hasn't really been used since os9…)


   
ReplyQuote
(@Anonymous)
Guest
Joined: 1 second ago
Posts: 0
 

Hi all,
do you know if on IPhone/Ipod the Playcounts.plist record the timestamps in seconds since 01/01/1904 UTC+0 and then manually we have to add the timezone or in that number the timezone is included?

E.G. If I have
<key>playMacOSDate</key>
<integer>3425616668</integer>
this number is the the seconds since 01/01/1904 and then I have to add the timezone of my Country or in that number the timezone is included automatically by the system, has been read from the device time set?
Thanks


   
ReplyQuote
Page 1 / 2
Share: