Skip to content
Advertisement

Tag: timezone-offset

Error while converting timestamp string with timezone (+0000) to Timestamp in Presto

I am trying to convert a timestamp string to timestamp with date_parse, but keep getting an error. Any suggestions? I am working on Presto SQL. I also refered: http://teradata.github.io/presto/docs/127t/functions/datetime.html, but couldnt find anything that can deal with +0000 i.e Timezone. I tried: throws me error Invalid format: “2021-05-22 04:00:00 +0000” is malformed at “+0000″” Also tried this: throws me error

Time zone conversion in SQL query

I am using a query to get some application Received Date from Oracle DB which is stored as GMT. Now I have to convert this to Eastern standard/daylight savings time while retrieving. I am using the below query for this: It works fine for Standard time. But for daylight savings time we need to convert it to ‘edt’ based on

Advertisement