package polymarket

  1. Overview
  2. Docs
On This Page
  1. Timestamps
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Primitives.TimestampSource

Timestamps

ISO 8601 timestamp type (e.g., "2023-11-07T05:31:56Z"). Used for date/time parameters in API requests.

Sourcetype t

An ISO 8601 timestamp (e.g., "2023-11-07T05:31:56Z")

Sourceval of_string : string -> t option

Parse from ISO 8601 string

Sourceval of_string_exn : string -> t

Parse from ISO 8601 string, raises on invalid format

Sourceval to_string : t -> string

Convert to ISO 8601 string

Sourceval to_ptime : t -> Ptime.t

Get the underlying Ptime.t

Sourceval of_ptime : Ptime.t -> t

Create from Ptime.t

Sourceval t_of_yojson : Yojson.Safe.t -> t

Parse from JSON string

Sourceval yojson_of_t : t -> Yojson.Safe.t

Convert to JSON string

Sourceval pp : Format.formatter -> t -> unit
Sourceval equal : t -> t -> bool