Wszystkie dyskusje > Fora Steam > Help and Tips > Szczegóły wątku
Hiccup 17 sierpnia 2023 o 10:37
What unit does steam's api use in playtime_forever?
I tried using an epoch converter, but the result was very inaccurate. Any help is appreciated
< >
Wyświetlanie 1-3 z 3 komentarzy
Ettanin 17 sierpnia 2023 o 10:40 
https://developer.valvesoftware.com/wiki/Steam_Web_API#GetOwnedGames_.28v0001.29

playtime_forever The total number of minutes played "on record", since Steam began tracking total playtime in early 2009.

It's an absolute time in minutes, not relative to any kind of epoch start. Playtime before early 2009 is not tracked.
Hiccup 17 sierpnia 2023 o 10:49 
Thank you man
Kargor 17 sierpnia 2023 o 10:53 
Yeah, rtime_last_played is the one item that gives a point in time, and thus needs a point of origin. 99% of the cases, steam uses the standard Unix epoch for this.
Durations (playtime_2weeks, playtime_forever, playtime_windows_forever, playtime_mac_forever, playtime_linux_forever) can be used directly.
Ostatnio edytowany przez: Kargor; 17 sierpnia 2023 o 10:54
< >
Wyświetlanie 1-3 z 3 komentarzy
Na stronę: 1530 50

Wszystkie dyskusje > Fora Steam > Help and Tips > Szczegóły wątku
Data napisania: 17 sierpnia 2023 o 10:37
Posty: 3