-
Couldn't load subscription status.
- Fork 8k
Adds DateTime[Immutable]::createFromTimestamp #12413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
29eca46
9df735e
c7cc823
178f7ce
759a9e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,6 +159,12 @@ function date_create_from_format( | |
| function date_create_immutable_from_format( | ||
| string $format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false {} | ||
|
|
||
| /** @refcount 1 */ | ||
| function date_create_from_timestamp(int|float $timestamp): DateTime {} | ||
|
|
||
| /** @refcount 1 */ | ||
| function date_create_immutable_from_timestamp(int|float $timestamp): DateTimeImmutable {} | ||
|
|
||
| /** | ||
| * @return array<string, mixed> | ||
| * @refcount 1 | ||
|
|
@@ -362,6 +368,12 @@ public static function createFromInterface(DateTimeInterface $object): DateTime | |
| */ | ||
| public static function createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false {} | ||
|
|
||
| /** | ||
| * @tentative-return-type | ||
|
||
| * @alias date_create_from_timestamp | ||
| */ | ||
| public static function createFromTimestamp(int|float $timestamp): static {} | ||
|
|
||
| /** | ||
| * @return array<string, int|array>|false | ||
| * @tentative-return-type | ||
|
|
@@ -466,6 +478,12 @@ public static function __set_state(array $array): DateTimeImmutable {} | |
| */ | ||
| public static function createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false {} | ||
|
|
||
| /** | ||
| * @tentative-return-type | ||
| * @alias date_create_immutable_from_timestamp | ||
| */ | ||
| public static function createFromTimestamp(int|float $timestamp): static {} | ||
|
|
||
| /** | ||
| * @return array<string, int|array>|false | ||
| * @tentative-return-type | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.