How to obtain GMT date-time

Hello,

How can I obtain GMT date-time in EasyMorph? I see that the now() function gives me the time in my current time zone, however I need to obtain now() but in its GMT equivalent. Is this possible?

The “addhours” function is not ideal, as sometimes during the year we are +2 GMT, and sometimes we are +1 GMT, depending on daylight saving times.

Thanks very much,

Roberto

There are two functions that reliably convert a local date/time into UTC or from it:

localtime()

utctime()

Thanks, understood! I didn’t know that UTC was the successor to GMT.