How to obtain GMT date-time


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,


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



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