Lines Matching refs:date
39 $date = $factory->make('');
41 static::assertSame(GregorianDate::ESCAPE, $date->format('%@'));
42 static::assertSame(0, $date->year);
43 static::assertSame(0, $date->month);
44 static::assertSame(0, $date->day);
62 $date = $factory->make($calendar_escape);
63 static::assertSame($calendar_escape, $date->format('%@'));
64 static::assertSame(0, $date->year);
65 static::assertSame(0, $date->month);
66 static::assertSame(0, $date->day);
74 $date = $factory->make('@#DSTARDATE@');
75 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
76 static::assertSame(0, $date->year);
77 static::assertSame(0, $date->month);
78 static::assertSame(0, $date->day);
85 $date = $factory->make('01 JAN 1970');
86 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
87 static::assertSame(1970, $date->year);
88 static::assertSame(1, $date->month);
89 static::assertSame(1, $date->day);
96 $date = $factory->make('JAN 1970');
97 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
98 static::assertSame(1970, $date->year);
99 static::assertSame(1, $date->month);
100 static::assertSame(0, $date->day);
107 $date = $factory->make('1970');
108 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
109 static::assertSame(1970, $date->year);
110 static::assertSame(0, $date->month);
111 static::assertSame(0, $date->day);
118 $date = $factory->make('THE MID 1960S');
119 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
120 static::assertSame(1960, $date->year);
121 static::assertSame(0, $date->month);
122 static::assertSame(0, $date->day);
129 $date = $factory->make('PERHAPS FEB OR MAR IN 1960 or 1961');
130 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
131 static::assertSame(1960, $date->year);
132 static::assertSame(2, $date->month);
133 static::assertSame(0, $date->day);
140 $date = $factory->make('PERHAPS 11 OR 12 FEB OR MAR IN 1960 or 1961');
141 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
142 static::assertSame(1960, $date->year);
143 static::assertSame(2, $date->month);
144 static::assertSame(11, $date->day);
151 $date = $factory->make('PERHAPS FEB OR MAR');
152 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
153 static::assertSame(0, $date->year);
154 static::assertSame(2, $date->month);
155 static::assertSame(0, $date->day);
162 $date = $factory->make('PERHAPS 11 OR 12 FEB OR MAR');
163 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
164 static::assertSame(0, $date->year);
165 static::assertSame(2, $date->month);
166 static::assertSame(11, $date->day);
173 $date = $factory->make('@#DGREGORIAN@ 10 NSN 5432');
174 static::assertSame('@#DHEBREW@', $date->format('%@'));
175 static::assertSame(5432, $date->year);
176 static::assertSame(8, $date->month);
177 static::assertSame(10, $date->day);
184 $date = $factory->make('@#DGREGORIAN@ 10 PLUV 11');
185 static::assertSame('@#DFRENCH R@', $date->format('%@'));
186 static::assertSame(11, $date->year);
187 static::assertSame(5, $date->month);
188 static::assertSame(10, $date->day);
195 $date = $factory->make('@#DGREGORIAN@ 10 SHAAB 1234');
196 static::assertSame('@#DHIJRI@', $date->format('%@'));
197 static::assertSame(1234, $date->year);
198 static::assertSame(8, $date->month);
199 static::assertSame(10, $date->day);
206 $date = $factory->make('@#DGREGORIAN@ 10 BAHMA 1234');
207 static::assertSame('@#DJALALI@', $date->format('%@'));
208 static::assertSame(1234, $date->year);
209 static::assertSame(11, $date->month);
210 static::assertSame(10, $date->day);
217 $date = $factory->make('@#DGREGORIAN@ 10 AUG 44 B.C.');
218 static::assertSame('@#DJULIAN@', $date->format('%@'));
219 static::assertSame(-44, $date->year);
220 static::assertSame(8, $date->month);
221 static::assertSame(10, $date->day);
228 $date = $factory->make('3456');
229 static::assertSame('@#DHEBREW@', $date->format('%@'));
230 static::assertSame(3456, $date->year);
231 static::assertSame(0, $date->month);
232 static::assertSame(0, $date->day);