rearrage_stuff

This commit is contained in:
Kim Ravn Hansen
2025-09-16 11:26:40 +02:00
parent 40e8c5e0ab
commit 3f11ebe6dc
4937 changed files with 1146031 additions and 134 deletions

View File

@@ -0,0 +1,21 @@
import type { Timestamp } from "./gen/google/protobuf/timestamp_pb.js";
/**
* Create a google.protobuf.Timestamp for the current time.
*/
export declare function timestampNow(): Timestamp;
/**
* Create a google.protobuf.Timestamp message from an ECMAScript Date.
*/
export declare function timestampFromDate(date: Date): Timestamp;
/**
* Convert a google.protobuf.Timestamp message to an ECMAScript Date.
*/
export declare function timestampDate(timestamp: Timestamp): Date;
/**
* Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds.
*/
export declare function timestampFromMs(timestampMs: number): Timestamp;
/**
* Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds.
*/
export declare function timestampMs(timestamp: Timestamp): number;