DateTime.hour()

Returns the hour for the passed time
DateTime.hour(time:int)

Parameters

Name Type Действие Значение по умолчанию
time int Time in Unix timestamp

Return value

Hour of the specified time.

Example

let h = DateTime.hour(Current.Time);