close

 

datetime CurTime( )

The CurTime function returns the current server time, it's not always the exact current server time but it's the last know server time that the terminal has been retrieved it from the server with the last price quotation

int Day( )

The Day function returns the current day of the month (1, 2, 3, 4, ..... 31) of the last known server time.

int DayOfWeek( )

The DayOfWeek function returns the current day of the week of the last know server time:
0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday

int DayOfYear( )

The DayOfYear function returns the current day of the year (1, 2, 3, .... 365 (366) ) of the last know server time.

int Hour( )

The Hour function returns the current hour (0, 1, 2, .... 23 ) of the last know server time.

datetime LocalTime( )

The LocalTime function returns the current local computer time.

int TimeDay(datetime date)

The TimeDay function returns the day of the month (1, 2, 3, ... 31) of the given date. It extracts the day of the month from the given date
int day=TimeDay(D'2003.12.31');  // day is 31

int TimeDayOfWeek(datetime date)

The TimeDayOfWeek function returns the day of the week (0,1, 2, .... 6) of the given date.

int weekday=TimeDayOfWeek(D'2004.11.2'); // day is 2 - Tuesday

int TimeDayOfYear(datetime date)

The TimeDayOfYear function returns the day of the year (1, 2, 3, .... 365 (366)) of the given date.
int day=TimeDayOfYear(CurTime());

int TimeHour(datetime date)

The TimeHour function returns the hour of the day (0,1, 2, .... 23) of the given date.
int h=TimeHour(CurTime());

int TimeMinute(datetime date)
int TimeMonth(datetime date)


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Robin0320 的頭像
    Robin0320

    縫隙中求生存 Life in GAP

    Robin0320 發表在 痞客邦 留言(0) 人氣()