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
void MgDateTime::SetHour | ( | INT8 | hour | ) |
Sets the hour component of this object The Validate method should be called after the date time value has been fully specified by Set methods. .NET Syntax
`void SetHour(short hour);`
Java Syntax
`void SetHour(short hour);`
PHP Syntax
`void SetHour(int hour);`
  Parameters:
  | hour | (short/int) Hour since midnight in the range of 0 to 23

Comments or suggestions? Send us feedback.