Maptitude GISDK Help |
Creates a DateTime compound variable.
Added to Version 2013.
datetime = CreateDateTime([int day, int month, int year, int hour, int minute, int second, int millisecond])
Argument |
Contents |
day |
Day number |
month |
Month number |
year |
Full year number |
hour |
Hour number in 24-hour format |
minute |
Minute number |
second |
Second number |
millisecond |
Millisecond number |
A DateTime compound variable.
All arguments are optional, but you must have the correct number of commas before and between arguments.
If all arguments are null, or no arguments are supplied, CreateDateTime() returns the current date and time.
dt = CreateDateTime(3,1,2013,11,22,19,48)
ShowArray({dt})
ShowMessage(i2s(dt.year))
ShowMessage(i2s(dt.millisecond))
dt = CreateDateTime()
ShowMessage("The date and time are " + FormatDateTime(dt,))
Function |
Summary |
Creates a DateTime compound variable with just a date |
|
Creates a DateTime compound variable with just a time |
|
Formats a DateTime compound variable |
|
Parses a string to create a DateTime compound variable |
©2025 Caliper Corporation | www.caliper.com |