| 1 |
import type { Timestamp } from "./gen/google/protobuf/timestamp_pb.js"; |
| 2 |
/** |
| 3 |
* Create a google.protobuf.Timestamp for the current time. |
| 4 |
*/ |
| 5 |
export declare function timestampNow(): Timestamp; |
| 6 |
/** |
| 7 |
* Create a google.protobuf.Timestamp message from an ECMAScript Date. |
| 8 |
*/ |
| 9 |
export declare function timestampFromDate(date: Date): Timestamp; |
| 10 |
/** |
| 11 |
* Convert a google.protobuf.Timestamp message to an ECMAScript Date. |
| 12 |
*/ |
| 13 |
export declare function timestampDate(timestamp: Timestamp): Date; |
| 14 |
/** |
| 15 |
* Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds. |
| 16 |
*/ |
| 17 |
export declare function timestampFromMs(timestampMs: number): Timestamp; |
| 18 |
/** |
| 19 |
* Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds. |
| 20 |
*/ |
| 21 |
export declare function timestampMs(timestamp: Timestamp): number; |