Skip to content

Commit cc287b7

Browse files
committed
DateTime: removed setTimestamp() and getTimestamp(), big int are supported in x64 PHP versions
1 parent bdea849 commit cc287b7

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Utils/DateTime.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,28 +90,6 @@ public function modifyClone(string $modify = '')
9090
}
9191

9292

93-
/**
94-
* @param int|string $timestamp
95-
* @return static
96-
*/
97-
public function setTimestamp($timestamp)
98-
{
99-
$zone = $this->getTimezone();
100-
$this->__construct('@' . $timestamp);
101-
return $this->setTimezone($zone);
102-
}
103-
104-
105-
/**
106-
* @return int|string
107-
*/
108-
public function getTimestamp()
109-
{
110-
$ts = $this->format('U');
111-
return is_float($tmp = $ts * 1) ? $ts : $tmp;
112-
}
113-
114-
11593
/**
11694
* Returns new DateTime object formatted according to the specified format.
11795
* @param string $format The format the $time parameter should be in

0 commit comments

Comments
 (0)