DateType

From MediaMonkey Wiki
Revision as of 19:41, 15 April 2012 by Mcow (talk | contribs) (Added basic description of DateType)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DateType is a date-identifier. At base, it is a floating-point number expressing seconds since the epoch (nominally 1-Jan-1970 0:00 UTC).

In Python, properties of this value will be returned as PyTime objects. It can be converted to a timestamp using float() or int(): [code] lpDate = track.DatePlayed timestamp = float(lpDate) # or int(lpDate) dateobj = datetime.utcfromtimestamp(timestamp) [/code]