Maptitude GISDK Help |
Creates a DateTime compound variable with just a time.
Added to Version 2013.
datetime = CreateTime([int hour, int minute, int second, int millisecond])
Argument |
Contents |
hour |
Hour number in 24-hour format |
minute |
Minute number |
second |
Second number |
millisecond |
Millisecond number |
A DateTime compound variable with missing date properties.
All arguments are optional, but you must have the correct number of leading commas for the minute, second, and millisecond arguments.
If all arguments are null, or no arguments are supplied, CreateTime() returns the current time.
The day, month, and year properties of the DateTime compound variable will be null.
For more information on DateTime compound variables, see Compound Variables.
dt = CreateTime(11,22,19,48)
ShowArray({dt})
ShowMessage(i2s(dt.millisecond))
dt = CreateTime()
ShowMessage("The time is " + FormatDateTime(dt,))
Function |
Summary |
Creates a DateTime compound variable with just a date |
|
Creates a DateTime compound variable |
|
Formats a DateTime compound variable |
|
Parses a string to create a DateTime compound variable |
©2025 Caliper Corporation | www.caliper.com |