Recurr\Rule::getStartDate PHP Метод

getStartDate() публичный Метод

public getStartDate ( ) : DateTime
Результат DateTime
    public function getStartDate()
    {
        return $this->startDate;
    }

Usage Example

Пример #1
0
 public function testLoadFromStringWithDtstart()
 {
     $string = 'FREQ=MONTHLY;DTSTART=20140222T073000';
     $this->rule->setTimezone('America/Los_Angeles');
     $this->rule->loadFromString($string);
     $expectedStartDate = new \DateTime('2014-02-22 07:30:00', new \DateTimeZone('America/Los_Angeles'));
     $this->assertEquals(Frequency::MONTHLY, $this->rule->getFreq());
     $this->assertEquals($expectedStartDate, $this->rule->getStartDate());
 }
All Usage Examples Of Recurr\Rule::getStartDate