通过这个函数,你可以创建一个包含给定日期时间的字符串,该字符串是针对调用该函数时运行游戏的系统或设备进行格式化的。
date_datetime_string(date);
参数 | 类型 | 描述 |
---|---|---|
date | Datetime | 要使用日期。 |
str = date_datetime_string(date_current_datetime());
这会将“str”设置为类似于“2011 年 9 月 15 日,11:33.00”("September 15th 2011, 11:33.00"),具体取决于日期/时间显示的系统设置以及当前日期和时间。