Is anyone aware of any delivered functions or methods to add / subtract time from the current time with the time zone applied?
For example, lets say you want to filter for data created in the last hour and need to derive the current time minus 1 hour. The delivered "timestamp" object does let you set the set the time zone and format of the current time, but doesn't appear to provide any methods for adding / subtracting time and returns a string.
Additionally, the native java classes that "timestamp" object leverages are blocked / blacklisted by Infor (e.g. java.util.Calendar and java.text.SimpleDateFormat) so you can't easily implement adding / subtracting time methods on your own.
What I usually end up doing is writing JS functions to derive the time zone offset based on whether it's currently daylight savings time, modify the hours on a date object with the offest, and then us a regex to format the ISO string to the desired format. This works fine, but I'd rather have a simpler delivered solution that doesn't require function declarations; or better yet have them whitelist java.util.Calendar and java.text.SimpleDateFormat.
I'm curious about input from others before I enter an enhancement request.
Thanks!
Andy