Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The hour
accessor property of Temporal.PlainTime
instances returns a integer from 0 to 23 representing the hour component of this time.
The set accessor of hour
is undefined
. You cannot change this property directly. Use the with()
method to create a new Temporal.PlainTime
object with the desired new value.