4
DateTime'a PHP Zaman Damgası
Bunu bir strtotime'a veya benzer türde bir değere DateTime nesnesine geçirmek için nasıl dönüştürebileceğimi biliyor musunuz ? Sahip olduğum tarih: Mon, 12 Dec 2011 21:17:52 +0000 Ne denedim: $time = substr($item->pubDate, -14); $date = substr($item->pubDate, 0, strlen($time)); $dtm = new DateTime(strtotime($time)); $dtm->setTimezone(new DateTimeZone(ADMIN_TIMEZONE)); $date = $dtm->format('D, M dS'); $time = …