Hour1.0.0+

  1. moment().hour(Number);
  2. moment().hour(); // Number
  3. moment().hours(Number);
  4. moment().hours(); // Number

Gets or sets the hour.

Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the day.