GoLang DateTimeImmutable::setTimestamp

request it (79)
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 ]

DateTimeImmutable::setTimestamp

(PHP 5 >= 5.5.0, PHP 7)

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

Description

public DateTimeImmutable DateTimeImmutable::setTimestamp ( int $unixtimestamp )

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