How to get the Greenwich Mean Time via a Novulo Expression

If you are in need of getting the GMT via a Novulo expresion then the following expression could be used:

date:load(“1970-01-01”).todatetime_dte().addseconds(datetime:now().getutcoffset().round())

In order to configure this expression in a Novulo Architect then the aid of the date time extension plug-in as well the numeric extensions is needed.

afbeelding

3 Likes

Based on your expression, I think you can use datetime:utcnow() as well:


However now we are in summer time, but i expect it works in winter time the same way.

1 Like

Thanks Miroslav, that is much easier, missed that one.