This timestamp is in milliseconds, not in seconds. Divide it by 1000 and use date
function:
echo date('Y-m-d h:i:s', $item->timestamp / 1000);
// e.g
echo date('Y-m-d h:i:s',1443852054000/1000);
// shows 2015-10-03 02:00:54
More Related Contents:
- Create PHP timestamp to insert into mysql databse [duplicate]
- Display which day it is? sunday or monday “php coding”? [closed]
- Converting timestamp to time ago in PHP e.g 1 day ago, 2 days ago…
- Timezone conversion in php
- PHP How to find the time elapsed since a date time? [duplicate]
- How to convert date to timestamp in PHP?
- PHP: producing relative date/time from timestamps
- Converting a UNIX Timestamp to Formatted Date String
- Getting date format m-d-Y H:i:s.u from milliseconds
- MySQL datetime fields and daylight savings time — how do I reference the “extra” hour?
- Accessing dates in PHP beyond 2038
- best practice to generate random token for forgot password
- What is a Unix timestamp and why use it?
- How to generate random date between two dates using php?
- Check whether the string is a unix timestamp
- NOW() function in PHP
- Get timestamp of today and yesterday in php
- Using MySQL’s TIMESTAMP vs storing timestamps directly
- Why do timestamps have a limit to 2038?
- Formatting an SQL timestamp with PHP
- Storing time information: Timezone required?
- How to convert MySQL time to UNIX timestamp using PHP?
- Subtracting a certain number of hours, days, months or years from date
- How can I work with dates before 1900 in PHP?
- How to get Unix timestamp in php based on timezone
- Finding cartesian product with PHP associative arrays
- preg_replace: add number after backreference
- Laravel 5.4 redirection to custom url after login
- PHP is not recognized as an internal or external command in command prompt
- Proper session hijacking prevention in PHP