File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -232,13 +232,13 @@ The constructor also allows setting a timezone or custom referenced date::
232
232
The ``DatePoint `` class also provides a named constructor to create dates from
233
233
timestamps::
234
234
235
- $dateOfFirstCommitOfSymfonyProject = DatePoint::createFromTimestamp(' 1129645656' );
235
+ $dateOfFirstCommitOfSymfonyProject = DatePoint::createFromTimestamp(1129645656);
236
236
// equivalent to:
237
- // $dateOfFirstCommitOfSymfonyProject = (new \DateTimeImmutable())->setTimestamp(' 1129645656' );
237
+ // $dateOfFirstCommitOfSymfonyProject = (new \DateTimeImmutable())->setTimestamp(1129645656);
238
238
239
239
// negative timestamps (for dates before January 1, 1970) and fractional timestamps
240
240
// (for high precision sub-second datetimes) are also supported
241
- $dateOfFirstMoonLanding(' -14182940' );
241
+ $dateOfFirstMoonLanding = DatePoint::createFromTimestamp( -14182940);
242
242
243
243
.. versionadded :: 7.1
244
244
You can’t perform that action at this time.
0 commit comments