Skip to content

DOMTimeStamp confusion #2

@domenic

Description

@domenic

DOMTimeStamp has a few questionable things I was hoping to get cleared up:

  • Because it's unsigned long long, it cannot represent dates before 1970. Is that a desired property for a timestamp?
  • It says that it can be either absolute or relative. Do any specs use it for relative timestamps? I have not found any in a quick Google search.
  • Why does it exist? This is probably part of a larger conversation regarding the utility of WebIDL's various number types, but, it was pretty confusing to find DOMTimeStamp when I could have just found unsigned long long (or ideally number, which would fix the 1970 restriction).

I'd love to discuss the general problem of number types in WebIDL after I've had time to put together a more concrete proposal, but I am wondering if there's anything we can do to clean up the DOMTimeStamp corner of this mess.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions