# FrozenTime change my datetime

**URL:** <https://discourse.cakephp.org/t/frozentime-change-my-datetime/6290>\
**Category:** Uncategorized\
**Created:** [June 20, 2019, 8:47pm UTC](https://discourse.cakephp.org/t/frozentime-change-my-datetime/6290 "2019-06-20T20:47:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![FinlayDaG33k](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/finlaydag33k/32/1049_2.png) [@FinlayDaG33k](https://discourse.cakephp.org/u/FinlayDaG33k)\
**Post date:** [June 21, 2019, 2:40pm UTC](https://discourse.cakephp.org/t/frozentime-change-my-datetime/6290/4 "2019-06-21T14:40:08Z")

</div>

Technically speaking (I have no clue if this is a good idea but w/e) you could convert it to a Unix timestamp and then use it as if it where a “non-frozen” time:

```auto
$time = gettime(); // replace with your actual code
$timeStamp = $time->i18nFormat(Time::UNIX_TIMESTAMP_FORMAT);
$newTime = Time::createFromTimestamp($timeStamp);

```

It’s just a blind guess because I have no clue what you’re trying to accomplish because I can’t see what your code is doing…

---

_[View the full topic](https://discourse.cakephp.org/t/frozentime-change-my-datetime/6290)._
