Hi Regina,
Sorry. Currently ESP will convert a time with timezone to local time, but it doesn't convert local time to time in a different timezone (like UTC).
I can't think of a better way than below:
GENTIME LL REALNOW PLUS 5 HOURS
Then use %LLTIME. Note: you will need to add the IF logic, since if it's not daylight saving time, then it should be 4 hours instead of 5.
Lucy
Original Message:
Sent: 07-12-2019 09:35 AM
From: Regina McKeon
Subject: UTC Timestamp
Thanks so much, Lucy. So is there really no way to get a UTC date/time? This is what we use now: 'Outages_!CURYYMMDD!RTIME!ESPASS..json'
Original Message:
Sent: 07-11-2019 02:27 PM
From: LIXIN ZHANG
Subject: UTC Timestamp
Please ignore my previous post.
Actually it won't help. Adding UTC will treat the REALNOW local time as the UTC, and translate it to local time.
Sorry about that.
Lucy
Original Message:
Sent: 07-11-2019 01:33 PM
From: LIXIN ZHANG
Subject: UTC Timestamp
Hi Regina,
You may try with GENTIME, like below in the related job definition:
GENTIME LL REALNOW UTC
Then use %LLYEAR%LLMM%LLDD%LLTIME for the date/time stamp on the file name.
Hope it helps,
Lucy
Original Message:
Sent: 07-09-2019 05:37 PM
From: Regina McKeon
Subject: UTC Timestamp
Good evening!
First post so please bear with me :) We are FTP-ing a file from the mainframe and the file name is required to contain a UTC timestamp.The FTP command will only accept ESP variables to construct the UTC timestamp, but so far we've only been able to obtain current date/time. Is there a simple way to use ESP variables to get a UTC value? example: file name now is "Outages_20190709173601" but should be "Outages_20190709213601"
Thank you,
Regina