Evilfred Mar 14, 2024 @ 8:06pm
Need help interpreting news API date result
Hi, community,

I am doing a school research project, I used my API key to get date for news release through python.

The sample date result looks like this:

Title: The next Subnautica game is coming in 2025
URL: https://steamstore-a.akamaihd.net/news/externalpost/PC Gamer/5382426458970944443
Release Date: 1700596650

Title: Steam Deck Update Released!
URL: https://steamstore-a.akamaihd.net/news/externalpost/steam_community_announcements/5070528176581093676
Release Date: 1678212198

Anyone know how to interpret and format this release date?

I take any form of a better format: Year/Month/Day or Month/day/ Year, or whatever format makes sense.

Many thanks!
Originally posted by Brujeira:
Yeah, it's otherwise known as Epoch time. This converter also has a list of code samples for converting it in various languages, so it might be of use.

https://www.epochconverter.com/
< >
Showing 1-4 of 4 comments
MalikQayum Mar 14, 2024 @ 9:04pm 
it is a unix timestamp so you need to convert it:
import datetime print(datetime.datetime.fromtimestamp(1700596650))
Last edited by MalikQayum; Mar 14, 2024 @ 9:08pm
The author of this thread has indicated that this post answers the original topic.
Brujeira Mar 14, 2024 @ 9:11pm 
Yeah, it's otherwise known as Epoch time. This converter also has a list of code samples for converting it in various languages, so it might be of use.

https://www.epochconverter.com/
MalikQayum Mar 14, 2024 @ 9:45pm 
from datetime import datetime print(datetime.fromtimestamp(1700596650))
Last edited by MalikQayum; Mar 14, 2024 @ 9:54pm
Evilfred Mar 15, 2024 @ 7:52am 
Appreciate it! :steamhappy:
Last edited by Evilfred; Mar 15, 2024 @ 7:54am
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Mar 14, 2024 @ 8:06pm
Posts: 4