lavalair Posted February 24, 2012 Report Share Posted February 24, 2012 Problēma: Datubāzēs datumi glabājas kaut kādā dīvainā formātā, .json failos tas pats. Kā lai es viņus iegūstu normālā cilvēkam izlasāmā formātā? Piemēram šo te: "start_date":1328855555, "end_date":1329373955, Quote Link to comment Share on other sites More sharing options...
aika Posted February 24, 2012 Report Share Posted February 24, 2012 http://www.php.net/manual/en/function.date.php Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 24, 2012 Report Share Posted February 24, 2012 http://en.wikipedia.org/wiki/Unix_time http://dev.mysql.com/doc/refman/5.1/en/datetime.html date('Y-m-d H:i:s', 1234567890); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.