Date.setHours
setHours – Set the hours, according to local time (0–23).
Description
Date.setHours(integer hours)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
hours | integer | No |
Return values
Integer. The new timestamp.
Examples
Example #1 – setHours example