date_time_string

Returns a string indicating the given time in the default format for the system.

语法:

date_time_string( date );


参数 描述
date The datetime to use.


返回: String(字符串)


描述

With this function you can create a string containing the given time, formatted for the system or device that is running the game when the function is called.


例如:

str = date_time_string( date_current_datetime() );

This would set str to something like "11:36.00" depending on the system settings for date/time displaying and the current date and time.


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