From b2f081fff12093a7d3434859ebd621608dde6c7d Mon Sep 17 00:00:00 2001 From: Matias Goldfeld Date: Sun, 7 Feb 2021 20:21:47 -0500 Subject: Reverted earlier changes for good --- lib/models/snowflake.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/models/snowflake.mli') diff --git a/lib/models/snowflake.mli b/lib/models/snowflake.mli index f2a56e3..0c42e4a 100644 --- a/lib/models/snowflake.mli +++ b/lib/models/snowflake.mli @@ -1,12 +1,12 @@ open Core -type t = int64 [@@deriving sexp, yojson] +type t = Int.t [@@deriving sexp, yojson { exn = true }] (** Convert a snowflake into a {!Core.Time.t} *) val time_of_t : t -> Time.t (** Convert a snowflake into a Unix timestamp. Millisecond precision. *) -val timestamp : t -> int64 +val timestamp : t -> int (** Convert a snowflake into an ISO8601 timestamp string. This is equivalent to calling [Snowflake.time_of_t snowflake |> Time.(to_string_iso8601_basic ~zone:Zone.utc)] *) val timestamp_iso : t -> string \ No newline at end of file -- cgit v1.2.3