For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Hi, user is retrieving TRDTIM_1 from Elektron using Websocket API sample code market_price_edpgw_service_discovery. However the timezone is in UTC. is it possible to convert the timezone to the user local timezone?

treprdp-apiwebsocketsrrto
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
18k 21 12 20

Hi @tzewen.ng

The time from datafeed is in UTC.

Developers can convert the time from UTC to any desired timezone in their code.

Here is a Python example, https://www.saltycrane.com/blog/2009/05/converting-time-zones-datetime-objects-python/

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea