2

The only way I have found is this:

round(date_second_span(date_create_datetime(1970,1,1,0,0,0),date_current_datetime()));
Mark Hetherington
  • 1,612
  • 14
  • 24

1 Answers1

2

GM has not special functions for working with UTC time, so you can use scripts for convert. For back convert you can use this, if need:

/// date_timestamp(timestamp)
// Convert UNIX time to GMS time

var t = date_inc_second(25569+1, argument0);
return date_inc_day(t, -1);

+1 and -1 needed because GMS has a bug

Dmi7ry
  • 1,777
  • 1
  • 13
  • 25