MobiusTrader
English
Russian
中文
English
العربي
Bahasa Indonesia
Terminals
For clients
Documentation
Articles
mScript
Contacts
Textbook
Directory
»
DateTime
»
dayOfWeek
Format
current
day
dayOfWeek
format
fromString
hour
minute
month
seconds
year
DateTime.dayOfWeek()
Returns the day of the week for a given date
DateTime.dayOfWeek(time:int)
Parameters
Name
Type
Действие
Значение по умолчанию
time
int
Time in Unix timestamp
—
Return value
Day of the week (0-6) for a given date; 0 = Sunday, 1 = Monday, etc.
Description
Used in the method
onUpdate
Example
let dayOfWeek = DateTime.dayOfWeek(DateTime.current());