package accessor_core

  1. Overview
  2. Docs
val span_since_epoch : (_, Core_kernel.Time_ns.Span.t, Core_kernel.Time_ns.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t

Access the time as a span since Time_ns.epoch

date_ofday, date and ofday present a time as a Date.t * Time_ns.Ofday.t. They are not well behaved accessors during time shifts (e.g. when transitioning to or from daylight savings time). See the explanation of well-behaveness in the Accessor documentation.

val date_ofday : Core_kernel.Time.Zone.t -> (_, Core_kernel.Date.t * Core_kernel.Time_ns.Ofday.t, Core_kernel.Time_ns.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val date : Core_kernel.Time.Zone.t -> (_, Core_kernel.Date.t, Core_kernel.Time_ns.t, [< Accessor_core__.Import.field ]) Accessor_base.Simple.t
OCaml

Innovation. Community. Security.