JSDateTime

API for setting time within the map.

Creates a new Module.JSDateTime API.

var startTime = new Module.JSDateTime(2023, 4, 27, 8, 0, 0); // year, month, day, hour, minute, second

properties

Name
Type
Description

year

number

Year

month

number

Month

day

number

Day

hour

number

Hour

minute

number

Minute

second

number

Second

Function

setCurrentTime()

Sets the time based on the input information.

If no information is input, it sets to the local time.

Last updated