×
Back to Geneos FAQ
Internal documentation only
This page has been marked as draft.
How to get the now() time in UTC
Problem:
Please could you let us know how to achieve the function now() to return UTC/GMT time? Currently, it is returning to BST time.
Possible Solution(s):
- now() returns gateway time. If you want that to be UTC set the gateway timezone to UTC in the Operating Environment section of the gateway.
- Try this syntax:
set $(now_in_utc) printDate("%Y-%m-%d %H:%M:%S %Z", now(), "UTC/UTC")
Reference(s)
["Geneos"]
["Geneos > Gateway"]
["FAQ"]