Skip to content

Commit

Permalink
add Timestamp_s.now
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Apr 17, 2024
1 parent 61b86e1 commit bdd6e2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/timestamp_s.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
type t = (float[@printer Util.pp_duration_s]) [@@deriving show, eq, serpack]
(** Timestamps *)

let now : unit -> t = Util.ptime_now

let to_string_rfc3339 ?tz_offset_s (self : t) : string =
let tz_offset_s =
match tz_offset_s with
Expand Down

0 comments on commit bdd6e2c

Please sign in to comment.