Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

How to edit the date and time data retrieved by the Eikon API

Hi, I have retrieved news data. Can you please tell me how to change the date and time displayed to the second? In the figure, I want to delete the red line.

1013.png

eikoneikon-data-apitimestamp
1013.png (120.5 KiB)
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.

@yumi.tanaka

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvote
Accepted
10.2k 18 6 9

@yumi.tanaka So this is easy to do with replace:

startdf = dfN['versionCreated'].replace(microsecond=0,tzinfo=None).strftime('%Y/%m/%d %H:%M:%S')
startdf = datetime.strptime(startdf,'%Y/%m/%d %H:%M:%S')

I hope this can help.

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.