MobiusTrader
English
Russian
中文
English
العربي
Bahasa Indonesia
Terminals
For clients
Documentation
Articles
mScript
Contacts
Textbook
Directory
»
DateTime
»
month
Format
current
day
dayOfWeek
format
fromString
hour
minute
month
seconds
year
DateTime.month()
Returns the month number of the specified time.
DateTime.month(time:int)
Parameters
Name
Type
Действие
Значение по умолчанию
time
int
Time in Unix timestamp
—
Return value
Month number (1-January,2,3,4,5,6,7,8,9,10,11,12) of the specified time.
Description
Used in the method
onUpdate
Example
let m = DateTime.month(Current.Time);