We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdea849 commit cc287b7Copy full SHA for cc287b7
src/Utils/DateTime.php
@@ -90,28 +90,6 @@ public function modifyClone(string $modify = '')
90
}
91
92
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
115
/**
116
* Returns new DateTime object formatted according to the specified format.
117
* @param string $format The format the $time parameter should be in
0 commit comments