For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 2 1 4

how can I specify the TZ of the timestamps in Eikon python api?

how can I choose the timezone of the arguments but also of the returned values in the result data frame?

eg:
ek.get_timeseries(i, start_date = "2021-07-18T00:00:00", end_date = "2021-07-20T16:34:05", interval="minute")

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikon
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.

Upvotes
Accepted
1 2 1 4
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.

Upvotes
1 2 1 4

specify OR know the TZ

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.

Upvotes
6.7k 8 6 7

@opsp please see the answer given in this thread. I hope this can help.

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.

Upvotes
38.1k 69 35 53

@opsp

From my testing, I can specify timezone with this format "2020-12-10T14:50:00-02:00".


1626923145412.png

1626923443029.png

However, the time in the resutl is stil in GMT.


1626923145412.png (39.9 KiB)
1626923443029.png (41.1 KiB)
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.

Upvotes
1 2 1 4

thanks. I'll check again. meanwhile, can you confirm that there are no user preferences that might define the API timezone presentation?

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.

@opsp

As I know, there are no user preferences in Eikon Data API.

Upvotes
1 2 1 4
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