GoLang DateTimeImmutable::setTimestamp

request it (204)
GoLang replacement for PHP's DateTimeImmutable::setTimestamp [edit | history]

Do you know a GoLang replacement for PHP's DateTimeImmutable::setTimestamp? Write it!

PHP DateTimeImmutable::setTimestamp

PHP original manual for DateTimeImmutable::setTimestamp [ show | php.net ]


(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::setTimestampSets the date and time based on a Unix timestamp


public DateTimeImmutable DateTimeImmutable::setTimestamp ( int $unixtimestamp )

Like DateTime::setTimestamp() but works with DateTimeImmutable.