public function testCanReadOffsetDateTime() { $str = '2015-01-02T13:22:11.987654+03'; $read = Primitives::ReadOffsetDateTime($str); $this->assertEquals('2015-01-02 13:22:11.987654', $read->date->format('Y-m-d H:i:s.u')); $this->assertEquals(60 * 60 * 3, $read->offsetSeconds); }