Notifications
Clear all

MacOSDate

18 Posts
6 Users
0 Likes
1,770 Views
triran
(@triran)
Posts: 99
Trusted Member
Topic starter
 

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

 
Posted : 24/12/2010 11:53 am
(@alexc)
Posts: 301
Reputable Member
 

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

 
Posted : 04/01/2011 2:52 pm
triran
(@triran)
Posts: 99
Trusted Member
Topic starter
 

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

 
Posted : 04/01/2011 3:03 pm
TomP
 TomP
(@tomp)
Posts: 36
Eminent Member
 

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.

 
Posted : 04/01/2011 3:34 pm
(@alexc)
Posts: 301
Reputable Member
 

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?

 
Posted : 04/01/2011 3:59 pm
triran
(@triran)
Posts: 99
Trusted Member
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.

 
Posted : 04/01/2011 4:08 pm
(@alexc)
Posts: 301
Reputable Member
 

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

 
Posted : 04/01/2011 4:22 pm
triran
(@triran)
Posts: 99
Trusted Member
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!

 
Posted : 04/01/2011 4:24 pm
(@alexc)
Posts: 301
Reputable Member
 

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

 
Posted : 04/01/2011 4:25 pm
(@Anonymous)
Posts: 0
Guest
 

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

 
Posted : 22/07/2012 11:00 pm
Page 1 / 2
Share: