Posted: Tue Apr 05, 2005 3:47 pm Post subject: converting current_timestamp to EST
Novice
Joined: 03 Jun 2004 Posts: 23
Hi all,
I need to convert the current_timestamp obtained from broker to EST. Can someone please advise on how to do this. Please note that we do not know what timezone the broker server will be on. In other words, if we knew the broker would be on PST, we would have simply added an interval of 3 hrs to current_timestamp. However we would not be knowing this and thus cannot hardcode this fact.
I figured that we could use the local_timezone function to obtain the timezone offset on the broker. However this value changes depending on whether it is daylight savings or not. For example this function returns -8.00 on a broker (that is on PST) before daylight savings and -7.00 after daylight savings.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum