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
/** | |
* Convert local time to time format for twitter API. | |
* | |
* @param timeStamp Time format for twitter API. | |
* @return Local time. Depends on the regional settings of the server and time. | |
*/ | |
public static function convertLocalTime($timeStamp) { | |
if (isset($timeStamp) === FALSE) return FALSE; | |
sscanf($timeStamp, "%s %s %d %s %s %d", $week, $month, $day, $time, $gmt, $year); | |
$rcf2822 = "{$week}\054\040{$day}\040{$month}\040{$year}\040{$time}\040{$gmt}"; |
NewerOlder