Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The hoursInDay accessor property of Temporal.ZonedDateTime instances returns a positive integer representing the number of hours in the day of this date in the time zone. It may be more or less than 24 in the case of offset changes such as daylight saving time.
Because ZonedDateTime is the only class that's time zone-aware, and hours in a day can only change by offset changes, all other classes assume 24-hour days.
The set accessor of hoursInDay is undefined. You cannot change this property directly.