Aller au contenu principal

DateTime():hour()

Sets the hour of the day of the DateTime object. (24-hour format, 0-23).

Signature

hour(hour: number): DateTime

Parameters

ParametersTypeDescription
hournumberThe hour to set (0-23).

Returns

DateTime - The current DateTime instance for chaining.