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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 1

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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