Date.UTC
UTC – Get the timestamp in milliseconds of the given UTC time.
Description
Date.UTC(integer year, integer month, integer day, [integer hour, [integer minutes, [integer seconds, [integer milliseconds]]]])
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
year | The year. | integer | No | |
month | Integer between 0 and 11. | integer | No | |
day | Integer between 1 and 31. | integer | No | |
hour | Integer between 0 and 23. | integer | Yes | |
minutes | Integer between 0 and 59. | integer | Yes | |
seconds | Integer between 0 and 59. | integer | Yes | |
milliseconds | Integer between 0 and 999. | integer | Yes |
Return values
Integer
Examples
Example #1 – UTC example