src/DateTime/RhubarbDateTime.php
public static function createFromFormat($format, $time, $timezone = null)
    {
        if ($timezone == null) {
            $dateTime = DateTime::createFromFormat($format, $time);
        } else {
            $dateTime = DateTime::createFromFormat($format, $time, $timezone);
        }
        return new self($dateTime, $timezone);
    }
public static function createFromFormat($format, $time, $timezone = null)
    {
        if ($timezone == null) {
            $dateTime = DateTime::createFromFormat($format, $time);
        } else {
            $dateTime = DateTime::createFromFormat($format, $time, $timezone);
        }
        return new self($dateTime, $timezone);
    }
public static function createFromFormat ( $ format , $ time , $ timezone = null ) { if ( $ timezone == null ) { $ dateTime = DateTime :: createFromFormat ( $ format , $ time ) ; } else { $ dateTime = DateTime :: createFromFormat ( $ format , $ time , $ timezone ) ; } return new self ( $ dateTime , $ timezone ) ; }
Parse a string into a new RhubarbDateTime object according to the specified format

@param string $format Format accepted by date().
@param string $time String representing the time.
@param $timezone A DateTimeZone object representing the desired time zone.

@return RhubarbDateTime
Parse a string into a new RhubarbDateTime object according to the specified format