Quantcast
Channel: Best way to change Twitter-API datetime's to a timestamp - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by KingCrunch for Best way to change Twitter-API datetime's to a...

$datetime = new DateTime("Mon Jul 25 05:51:34 +0000 2011"); $datetime->setTimezone(new DateTimeZone('Europe/Zurich')); echo $datetime->format('U'); See DateTime, DateTime::format(),...

View Article



Best way to change Twitter-API datetime's to a timestamp

The Twitter API sends created_at datetimes like this: "created_at": "Mon Jul 25 05:51:34 +0000 2011", What's the best way to convert them in a timestamp and my local timezone (Europe/Zurich)? With...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>