Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetDay
GetHour
GetMicrosecond
GetMinute
GetMonth
GetSecond
GetYear
IsDate
IsDateTime
IsTime
MgDateTime
MgDateTime
MgDateTime
MgDateTime
SetDay
SetHour
SetMicrosecond
SetMinute
SetMonth
SetSecond
SetYear
Validate
MgDateTime::MgDateTime | ( | INT16 | year,
|  | INT8 | month,
|  | INT8 | day,
|  | INT8 | hour,
|  | INT8 | minute,
|  | INT8 | second,
|  | INT32 | microsecond |
| ) |  |  |
Construct a date time value. .NET Syntax
`MgDateTime(short year, short month, short day, short hour, short minute, short second, int microsecond);`
Java Syntax
`MgDateTime(short year, short month, short day, short hour, short minute, short second, int microsecond);`
PHP Syntax
`MgDateTime(int year, int month, int day, int hour, int minute, int second, int microsecond);`
  Parameters:
  | year | (short/int) Input year
  | month | (short/int) Input month
  | day | (short/int) Input day of month
  | hour | (short/int) Input hour
  | minute | (short/int) Input minute
  | second | (short/int) Input second
  | microsecond | (int) Input microsecond
Returns: Returns nothing.

Comments or suggestions? Send us feedback.