mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 13:06:22 +00:00
16 lines
322 B
Markdown
16 lines
322 B
Markdown
---
|
|
id: 984344e1-ee68-4475-b792-71f2a6e0b766
|
|
title: createFromImmutable()
|
|
---
|
|
|
|
# Description
|
|
|
|
Similar to [createFromInterface()](20201113123327-createfrominterface),
|
|
but this function creates a `DateTime` object from a `DateTimeImmutable`
|
|
one.
|
|
|
|
# Syntax
|
|
|
|
``` php
|
|
DateTime::createFromImmutable(new DateTimeImmutable())
|
|
```
|