Lines Matching refs:createFromTimestamp

2 Tests for DateTime[Immutable]::createFromTimestamp
31 echo 'DateTime::createFromTimestamp(' . var_export($ts, true) . '): ';
33 var_dump(DateTime::createFromTimestamp($ts));
38 echo 'DateTimeImmutable::createFromTimestamp(' . var_export($ts, true) . '): ';
40 var_dump(DateTimeImmutable::createFromTimestamp($ts));
46 echo 'MyDateTime::createFromTimestamp(' . var_export(0, true) . '): ';
48 var_dump(MyDateTime::createFromTimestamp(0));
53 echo 'MyDateTimeImmutable::createFromTimestamp(' . var_export(0, true) . '): ';
55 var_dump(MyDateTimeImmutable::createFromTimestamp(0));
62 DateTime::createFromTimestamp(1696883232): object(DateTime)#%d (3) {
70 DateTimeImmutable::createFromTimestamp(1696883232): object(DateTimeImmutable)#%d (3) {
78 DateTime::createFromTimestamp(-1696883232): object(DateTime)#%d (3) {
86 DateTimeImmutable::createFromTimestamp(-1696883232): object(DateTimeImmutable)#%d (3) {
94 DateTime::createFromTimestamp(1696883232.013981): object(DateTime)#%d (3) {
102 DateTimeImmutable::createFromTimestamp(1696883232.013981): object(DateTimeImmutable)#%d (3) {
110 DateTime::createFromTimestamp(-1696883232.013981): object(DateTime)#%d (3) {
118 DateTimeImmutable::createFromTimestamp(-1696883232.013981): object(DateTimeImmutable)#%d (3) {
126 DateTime::createFromTimestamp(0.123456): object(DateTime)#%d (3) {
134 DateTimeImmutable::createFromTimestamp(0.123456): object(DateTimeImmutable)#%d (3) {
142 DateTime::createFromTimestamp(-0.123456): object(DateTime)#%d (3) {
150 DateTimeImmutable::createFromTimestamp(-0.123456): object(DateTimeImmutable)#%d (3) {
158 DateTime::createFromTimestamp(0): object(DateTime)#%d (3) {
166 DateTimeImmutable::createFromTimestamp(0): object(DateTimeImmutable)#%d (3) {
174 DateTime::createFromTimestamp(0.0): object(DateTime)#%d (3) {
182 DateTimeImmutable::createFromTimestamp(0.0): object(DateTimeImmutable)#%d (3) {
190 DateTime::createFromTimestamp(-0.0): object(DateTime)#%d (3) {
198 DateTimeImmutable::createFromTimestamp(-0.0): object(DateTimeImmutable)#%d (3) {
206 DateTime::createFromTimestamp(%f): DateRangeError: DateTime::createFromTimestamp(): Argument #1 ($t…
207 DateTimeImmutable::createFromTimestamp(%f): DateRangeError: DateTimeImmutable::createFromTimestamp(…
208 DateTime::createFromTimestamp(%f): DateRangeError: DateTime::createFromTimestamp(): Argument #1 ($t…
209 DateTimeImmutable::createFromTimestamp(%f): DateRangeError: DateTimeImmutable::createFromTimestamp(…
210 DateTime::createFromTimestamp(NAN): DateRangeError: DateTime::createFromTimestamp(): Argument #1 ($…
211 DateTimeImmutable::createFromTimestamp(NAN): DateRangeError: DateTimeImmutable::createFromTimestamp
212 DateTime::createFromTimestamp(INF): DateRangeError: DateTime::createFromTimestamp(): Argument #1 ($…
213 DateTimeImmutable::createFromTimestamp(INF): DateRangeError: DateTimeImmutable::createFromTimestamp
214 DateTime::createFromTimestamp(-INF): DateRangeError: DateTime::createFromTimestamp(): Argument #1 (…
215 DateTimeImmutable::createFromTimestamp(-INF): DateRangeError: DateTimeImmutable::createFromTimestam…
216 DateTime::createFromTimestamp(1599828571.235628): object(DateTime)#%d (3) {
224 DateTimeImmutable::createFromTimestamp(1599828571.235628): object(DateTimeImmutable)#%d (3) {
232 DateTime::createFromTimestamp(-1599828571.235628): object(DateTime)#%d (3) {
240 DateTimeImmutable::createFromTimestamp(-1599828571.235628): object(DateTimeImmutable)#%d (3) {
248 MyDateTime::createFromTimestamp(0): object(MyDateTime)#%d (3) {
256 MyDateTimeImmutable::createFromTimestamp(0): object(MyDateTimeImmutable)#%d (3) {