Created
February 12, 2014 14:48
-
-
Save shouhei/8956822 to your computer and use it in GitHub Desktop.
Ruby Tine.now -> php Datetime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$date = new DateTime('NOW'); | |
$time_str = preg_replace("/\+/"," +",preg_replace("/T/"," ", $date->format(DATE_ISO8601))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment