Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Timestamp.php

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\Protobuf

Code

public function setSeconds($var) {
    GPBUtil::checkInt64($var);
    $this->seconds = $var;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal