function Timestamp::setSeconds
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Generated from protobuf field <code>int64 seconds = 1;</code>
Parameters
int|string $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Timestamp.php, line 145
Class
- Timestamp
- A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in theā¦
Namespace
Google\ProtobufCode
public function setSeconds($var) {
GPBUtil::checkInt64($var);
$this->seconds = $var;
return $this;
}