MobiusTrader
English
Russian
中文
English
العربي
Bahasa Indonesia
Terminals
For clients
Documentation
Articles
mScript
Contacts
Textbook
Directory
»
DateTime
»
hour
Format
current
day
dayOfWeek
format
fromString
hour
minute
month
seconds
year
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);