Level 47
That is a unix time stamp.
https://en.m.wikipedia.org/wiki/Unix_time
With Carbon (included with laravel)
Carbon::create(unix timestamp)->toDateTimeString();
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi.
If I retrieve subscription data from stripe using their API I can see a property of "current_period_end" and it has a value of 1482779335. I don't recognise this as a date or date time format.
What is it? Do I need to do anything to it before I can store it in a database?
Many thanks.
That is a unix time stamp.
https://en.m.wikipedia.org/wiki/Unix_time
With Carbon (included with laravel)
Carbon::create(unix timestamp)->toDateTimeString();
Please or to participate in this conversation.