ObjectStackObjectStack

Epoch schema — Shared Protocol reference

Epoch schemas of the ObjectStack Shared Protocol: EpochMs — each property with its type, default and a TypeScript example.

Source: packages/spec/src/shared/epoch.zod.ts

TypeScript Usage

import { EpochMs } from '@objectstack/spec/shared';
import type { EpochMs } from '@objectstack/spec/shared';

// Validate data
const result = EpochMs.parse(data);

EpochMs

Unix timestamp in milliseconds (epoch)

Type: integer


On this page