w3c / tvcontrol-api

TV Control API specification - https://w3c.github.io/tvcontrol-api/
10 stars 11 forks source link

Use DOMTimeStamp type for date and time values #5

Open chrisn opened 8 years ago

chrisn commented 8 years ago

The TAG's API Design Principles suggests using the DOMTimeStamp type when representing dates and times with values being the number of milliseconds relative to 1970-01-01T00:00:00Z.

There are a few places in the TV Control API that use dates and times, such as the startTime and endTime attributes in TVProgram, TVRecording, TVGetProgramsOptions, and TVAddRecordingOptions. These currently use unsigned long long, so should be changed to DOMTimeStamp (although DOMTimeStamp itself is a typedef for unsigned long long).