I'm integrating external API which has expire_in
key with value 179999
. I need to convert the value to date so that I can compare current date with expired date (expired_in). from the API documentation say it expired in 50 Hour. I know that i can just create manually like strtotime('+50 hour')
but still I want to know how can I convert 179999
to date.
what I try
\DateTime::createFromFormat('ymd', 179999)->format('Y-m-d')
but it give me this result 2025-06-07