mirror of
https://github.com/dg/dibi.git
synced 2025-08-29 16:59:49 +02:00
coding style
This commit is contained in:
@@ -10,10 +10,10 @@ require __DIR__ . '/bootstrap.php';
|
||||
|
||||
date_default_timezone_set('Europe/Prague');
|
||||
|
||||
Assert::same('1978-01-23 11:40:00.000000', (string) new DateTime(254400000));
|
||||
Assert::same('1978-01-23 11:40:00.000000', (string) (new DateTime)->setTimestamp(254400000));
|
||||
Assert::same(254400000, (new DateTime(254400000))->getTimestamp());
|
||||
Assert::same('1978-01-23 11:40:00.000000', (string) new DateTime(254_400_000));
|
||||
Assert::same('1978-01-23 11:40:00.000000', (string) (new DateTime)->setTimestamp(254_400_000));
|
||||
Assert::same(254_400_000, (new DateTime(254_400_000))->getTimestamp());
|
||||
|
||||
Assert::same(is_int(2544000000) ? 2544000000 : '2544000000', (new DateTime(2544000000))->getTimestamp()); // 64 bit
|
||||
Assert::same(is_int(2_544_000_000) ? 2_544_000_000 : '2544000000', (new DateTime(2_544_000_000))->getTimestamp()); // 64 bit
|
||||
|
||||
Assert::same('1978-05-05 00:00:00.000000', (string) new DateTime('1978-05-05'));
|
||||
|
Reference in New Issue
Block a user