package timmy-unix
Unix clock implementation for Timmy
Install
Dune Dependency
Authors
Maintainers
Sources
1.0.4.tar.gz
md5=c8bda198fd548c288fd067217fef22aa
sha512=f168d44b45b453addf0aee02eaf992b6669dc0843cea992ab8a35fefb3a1b76e8225da03424e59369703cce5c788a1eac04f8490c7c8b3977c60da1898811ddf
doc/src/timmy-unix.clock/clock.ml.html
Source file clock.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
let now () = Ptime_clock.now () |> Timmy.Time.of_ptime external offset_calendar_time_s : int * int * int -> int * int * int -> int = "ocaml_timmy_offset_calendar_time_s" external offset_timestamp_s : Int64.t -> int = "ocaml_timmy_offset_timestamp_s" let timezone_local = let offset_calendar_time_s ~date ~time = offset_calendar_time_s date time and offset_timestamp_s ~unix_timestamp = let () = if Int64.compare 0L unix_timestamp > 0 then Fmt.failwith "Given timestamp is negative" in offset_timestamp_s unix_timestamp in Timmy.Timezone.of_implementation ~offset_calendar_time_s ~offset_timestamp_s let today () = Timmy.Date.of_time ~timezone:timezone_local @@ now ()
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>