我找到的唯一方法是:
round(date_second_span(date_create_datetime(1970,1,1,0,0,0),date_current_datetime()));
答案 0 :(得分:2)
GM没有使用UTC时间的特殊功能,因此您可以使用脚本进行转换。对于反向转换,您可以使用此功能,如果需要:
/// date_timestamp(timestamp)
// Convert UNIX time to GMS time
var t = date_inc_second(25569+1, argument0);
return date_inc_day(t, -1);
需要+1和-1,因为GMS有bug