accessor_core

Accessors for Core types, for use with the Accessor library
IN THIS PACKAGE
val span_since_epoch : ( _, Core.Time_ns.Span.t, Core.Time_ns.t, [< Accessor_core__Import.isomorphism ] ) Accessor_base.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.Time.Zone.t -> ( _, Core.Date.t * Core.Time_ns.Ofday.t, Core.Time_ns.t, [< Accessor_core__Import.isomorphism ] ) Accessor_base.t
val date : Core.Time.Zone.t -> ( _, Core.Date.t, Core.Time_ns.t, [< Accessor_core__Import.field ] ) Accessor_base.t
val ofday : Core.Time.Zone.t -> ( _, Core.Time_ns.Ofday.t, Core.Time_ns.t, [< Accessor_core__Import.field ] ) Accessor_base.t
module Span : sig ... end

Access a span as various units.