downloads.DownloadTime

The DownloadTime type of the downloads API represents the time a download took to complete.

Type

A DownloadTime can be one of three different types:

  • a JavaScript Date object.

  • a string:

    • if this contains only digits, it's interpreted as the number of milliseconds since the UNIX epoch.
    • otherwise, it's interpreted as an ISO 8601 string.
  • a number: this is interpreted as the number of milliseconds since the UNIX epoch.

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
DownloadTime

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support

Note: This API is based on Chromium's chrome.downloads API.