hour method

int hour(
  1. DateTime dateTime
)

Returns the hour of the given dateTime.

Implementation

int hour(DateTime dateTime) {
  return dateTime.hour;
}