Skip to content

Commit

Permalink
Better.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 1, 2024
1 parent 7e35870 commit 3c0a568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plot.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let format_timestamp f =
let timestamp = Option.get (Ptime.of_float_s f) in
let (y, m, d), _ = Ptime.to_date_time timestamp in
Printf.sprintf "%d-%d-%d" (y+1) m d
Printf.sprintf "%d-%d-%d" y m d

let svg ?(margin = 100.) ~width ~height ?(abscissa = "") ?(ordinate = "") ?x_min
?x_max ?y_min ?y_max points =
Expand Down

0 comments on commit 3c0a568

Please sign in to comment.