• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • sihl

  • Documentation
  • sihl lib
  • Sihl .Time Module
package sihl
  • sihl
    • Sihl
      • App
      • Cleaner
      • Command
      • Configuration
      • Container
        • Map
        • Service
          • Sig
      • Contract
        • Cache
          • Sig
        • Database
          • Sig
        • Email
          • Sig
        • Email_template
          • Sig
        • Http
          • Sig
        • Migration
          • Sig
        • Password_reset
          • Sig
        • Queue
          • Sig
        • Random
          • Sig
        • Schedule
          • Sig
        • Storage
          • Sig
        • Token
          • Sig
        • User
          • Hashing
          • Sig
            • Web
      • Database
        • Migration
          • Logs
          • Make
            • Repo
              • Migration
                • Fields
                  • Direct
          • Map
          • MariaDb
          • PostgreSql
          • Sig
      • Log
      • Random
      • Schedule
        • Logs
      • Test
        • Session
          • StrMap
      • Time
        • Span
      • Web
        • Csrf
          • Crypto
            • Decrypted_token
            • Encrypted_token
            • Secret
        • Flash
        • Htmx
        • Http
        • Id
        • Middleware
        • Request
        • Rest
          • CONTROLLER
          • SERVICE
          • VIEW
        • Session
Legend:
Library
Module
Module type
Parameter
Class
Class type
type duration =
  1. | OneSecond
  2. | OneMinute
  3. | TenMinutes
  4. | OneHour
  5. | OneDay
  6. | OneWeek
  7. | OneMonth
  8. | OneYear
val duration_to_yojson : duration -> Yojson.Safe.t
val duration_of_yojson : Yojson.Safe.t -> duration Ppx_deriving_yojson_runtime.error_or
val pp_duration : Format.formatter -> duration -> unit
val show_duration : duration -> string
val equal_duration : duration -> duration -> bool
val duration_to_span : duration -> Ptime.span
val date_from_now : Ptime.t -> duration -> Ptime.t
val ptime_to_yojson : Ptime.t -> [> `String of string ]
val ptime_of_yojson : Yojson.Safe.t -> (Ptime.t, string) result
val ptime_of_date_string : string -> (Ptime.t, string) result
val ptime_to_date_string : Ptime.t -> string
module Span : sig ... end

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct