date_second_span

Returns the number of seconds between two datetime values.

语法:

date_second_span(date1, date2);


参数 描述
date1 第一个日期时间。
date2 第二个日期时间。


返回: Real(实数)


描述

With this function you can get the number of seconds between two dates. The return value is always positive and will be a whole number.


例如:

diff = date_second_span(date_create_datetime(2011, 9, 15, 11, 4, 0 ), date_current_datetime());

This would set "diff" to the number of seconds between 15th September 2011, 11:04 and the current date and time.


上一页: Date And Time
下一页: date_time_of
© Copyright YoYo Games Ltd. 2018 All Rights Reserved