diff options
| author | Adelyn Breedlove <[email protected]> | 2019-01-20 23:55:56 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-01-20 23:55:56 -0700 |
| commit | 916a7fe93cb43a127ae08d545f5fddf2a4ea74be (patch) | |
| tree | 4784cce76f45b4083364fb7a4f9968e879887780 /lib/models/snowflake.mli | |
| parent | Improve embed builders (diff) | |
| download | disml-916a7fe93cb43a127ae08d545f5fddf2a4ea74be.tar.xz disml-916a7fe93cb43a127ae08d545f5fddf2a4ea74be.zip | |
Add more interfaces
Diffstat (limited to 'lib/models/snowflake.mli')
| -rw-r--r-- | lib/models/snowflake.mli | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/models/snowflake.mli b/lib/models/snowflake.mli new file mode 100644 index 0000000..5bbd1ff --- /dev/null +++ b/lib/models/snowflake.mli @@ -0,0 +1,13 @@ +open Core + +type t = Int.t [@@deriving sexp] + +val of_yojson_exn : Yojson.Safe.json -> t + +val of_yojson : Yojson.Safe.json -> t Ppx_deriving_yojson_runtime.error_or + +val to_yojson : t -> Yojson.Safe.json + +val timestamp : t -> int + +val timestamp_iso : t -> string
\ No newline at end of file |