| 
 | DateTimeImmutable::setTimestampSets the date and time based on a Unix timestamp Description
   #[\NoDiscard]
   public DateTimeImmutable DateTimeImmutable::setTimestamp(int  $timestamp)Returns a new DateTimeImmutable object constructed from the old one, with the date and time set based on an Unix timestamp. Parameters
 Return ValuesReturns a new DateTimeImmutable object with the modified data. ExamplesExample #1 DateTimeImmutable::setTimestamp example Object-oriented style The above examples will output something similar to: 1272508903 = 2010-04-28 22:41:43 1171502725 = 2007-02-14 20:25:25 See Also
 |