| Package | Description |
|---|---|
| com.google.cloud |
Core classes for the
google-cloud library. |
| Modifier and Type | Field and Description |
|---|---|
static Timestamp |
Timestamp.MAX_VALUE
The largest legal timestamp ("9999-12-31T23:59:59Z").
|
static Timestamp |
Timestamp.MIN_VALUE
The smallest legal timestamp ("0001-01-01T00:00:00Z").
|
| Modifier and Type | Method and Description |
|---|---|
static Timestamp |
Timestamp.fromProto(com.google.protobuf.Timestamp proto)
Creates an instance of Timestamp from
com.google.protobuf.Timestamp. |
static Timestamp |
Timestamp.now()
Creates an instance with current time.
|
static Timestamp |
Timestamp.of(Date date)
Creates an instance representing the value of
Date. |
static Timestamp |
Timestamp.of(Timestamp timestamp)
Creates an instance representing the value of
timestamp. |
static Timestamp |
Timestamp.ofTimeMicroseconds(long microseconds)
Creates an instance representing the value of
microseconds. |
static Timestamp |
Timestamp.ofTimeSecondsAndNanos(long seconds,
int nanos)
Creates an instance representing the value of
seconds and nanos since January
1, 1970, 00:00:00 UTC. |
static Timestamp |
Timestamp.parseTimestamp(String timestamp)
Creates a Timestamp instance from the given string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Timestamp.compareTo(Timestamp other) |
Copyright © 2023 Google LLC. All rights reserved.