# GoogleRidesharingConsumer Framework Reference

# GMTSTimestamp

    @interface GMTSTimestamp : https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCImmutableData.html

Object representing a timestamp.
- `


  ### [seconds](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTimestamp#/c:objc(cs)GMTSTimestamp(py)seconds)


  ` 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.

  #### Declaration

  Swift

      var seconds: Int64 { get }

  Objective-C

      @property (nonatomic, readonly) int64_t seconds;

- `


  ### [nanos](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTimestamp#/c:objc(cs)GMTSTimestamp(py)nanos)


  ` Non-negative fractions of a second at nanosecond resolution. Negative
  second values with fractions must still have non-negative nanos values
  that count forward in time. Must be from 0 to 999,999,999
  inclusive.

  #### Declaration

  Swift

      var nanos: Int32 { get }

  Objective-C

      @property (nonatomic, readonly) int32_t nanos;

- `


  ### [-initWithSeconds:nanos:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTimestamp#/c:objc(cs)GMTSTimestamp(im)initWithSeconds:nanos:)


  ` Instantiates the object with the specified `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTimestamp.html#/c:objc(cs)GMTSTimestamp(py)seconds` and \`nanos'.

  #### Declaration

  Swift

      init!(seconds: Int64, nanos: Int32)

  Objective-C

      - (instancetype)initWithSeconds:(int64_t)seconds nanos:(int32_t)nanos;

- `


  ### [-init](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTimestamp#/c:objc(cs)GMTSTimestamp(im)init)


  ` Unavailable
  Use `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTimestamp.html#/c:objc(cs)GMTSTimestamp(im)initWithSeconds:nanos:` instead.

  #### Declaration

  Objective-C

      - (instancetype)init;