17 $validate->validateDate( [],
$value,
true );
18 $this->assertEquals( $expected,
$value );
33 [
'1992-04',
'1992:04' ],
34 [
'1992-02-01',
'1992:02:01' ],
35 [
'2011-09-29',
'2011:09:29' ],
36 [
'1982-12-15T20:12',
'1982:12:15 20:12' ],
37 [
'1982-12-15T20:12Z',
'1982:12:15 20:12' ],
38 [
'1982-12-15T20:12+02:30',
'1982:12:15 22:42' ],
39 [
'1982-12-15T01:12-02:30',
'1982:12:14 22:42' ],
40 [
'1982-12-15T20:12:11',
'1982:12:15 20:12:11' ],
41 [
'1982-12-15T20:12:11Z',
'1982:12:15 20:12:11' ],
42 [
'1982-12-15T20:12:11+01:10',
'1982:12:15 21:22:11' ],
43 [
'2045-12-15T20:12:11',
'2045:12:15 20:12:11' ],
44 [
'1867-06-01T15:00:00',
'1867:06:01 15:00:00' ],
47 [
'2001-5-12', null ],
48 [
'2001-5-12TZ', null ],
49 [
'2001-05-12T15', null ],
50 [
'2001-12T15:13', null ],
testValidateDate( $value, $expected)
provideDates XMPValidate::validateDate
This contains some static methods for validating XMP properties.