.setTime()

Term side of the Card
Topic: Date
Unit title: .setTime()
Categories: Method
Explanation side of the Card

Explanation: The method that sets the time value of a specified date based on the number of milliseconds since January 1, 1970, 00:00:00 UTC (the Unix Epoch). This method updates the date and time to reflect the given millisecond value.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: