accessor_core

Accessors for Core types, for use with the Accessor library
IN THIS PACKAGE
Module Accessor_core . Time
val span_since_epoch : ( _, Core.Time.Span.t, Core.Time.t, [< Accessor_core__Import.isomorphism ] ) Accessor_base.t

Access the time as a span since Time.epoch

date_ofday, date and ofday present a time as a Date.t * Time.Ofday.t. They are not well behaved accessors in general, but especially 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.Ofday.t, Core.Time.t, [< Accessor_core__Import.isomorphism ] ) Accessor_base.t
val date : Core.Time.Zone.t -> ( _, Core.Date.t, Core.Time.t, [< Accessor_core__Import.field ] ) Accessor_base.t
val ofday : Core.Time.Zone.t -> ( _, Core.Time.Ofday.t, Core.Time.t, [< Accessor_core__Import.field ] ) Accessor_base.t
module Span : sig ... end

Access a span as various units.