Lines Matching refs:DateTimeParser
13 $this->assertEquals('+1 weeks', DateTimeParser::parseDuration('P1W', true));
14 $this->assertEquals('+5 days', DateTimeParser::parseDuration('P5D', true));
15 …$this->assertEquals('+5 days 3 hours 50 minutes 12 seconds', DateTimeParser::parseDuration('P5DT3H…
16 $this->assertEquals('-1 weeks 50 minutes', DateTimeParser::parseDuration('-P1WT50M', true));
17 …$this->assertEquals('+50 days 3 hours 2 seconds', DateTimeParser::parseDuration('+P50DT3H2S', true…
18 $this->assertEquals('+0 seconds', DateTimeParser::parseDuration('+PT0S', true));
19 $this->assertEquals(new DateInterval('PT0S'), DateTimeParser::parseDuration('PT0S'));
26 $this->assertEquals($expected, DateTimeParser::parseDuration('P1W'));
27 $this->assertEquals($expected, DateTimeParser::parse('P1W'));
31 $this->assertEquals($expected, DateTimeParser::parseDuration('-PT3M'));
40 DateTimeParser::parseDuration('P1X', true);
46 $dateTime = DateTimeParser::parseDateTime('20100316T141405');
60 $dateTime = DateTimeParser::parseDateTime('20100316T141405 ');
70 $dateTime = DateTimeParser::parseDateTime('20100316T251405');
79 $dateTime = DateTimeParser::parseDateTime('20100316T141405Z');
91 $dateTime = DateTimeParser::parseDateTime('20101211T160000Z');
103 …$dateTime = DateTimeParser::parseDateTime('20100316T141405', new DateTimeZone('Europe/Amsterdam'));
112 $dateTime = DateTimeParser::parseDate('20100316');
118 $dateTime = DateTimeParser::parse('20100316');
128 $dateTime = DateTimeParser::parseDate('45001231');
134 $dateTime = DateTimeParser::parse('45001231');
144 $dateTime = DateTimeParser::parseDateTime('45001231T235959');
150 $dateTime = DateTimeParser::parse('45001231T235959');
161 $dateTime = DateTimeParser::parseDate('20100316T141405');
171 $dateTime = DateTimeParser::parseDate('20101331');
182 DateTimeParser::parseVCardDateTime($input)
192 DateTimeParser::parseVCardDateTime('1985---01');
201 DateTimeParser::parseVCardTime('23:12:166');
682 DateTimeParser::parseVCardDateAndOrTime($date),