package orsetto
A library of assorted structured data interchange languages
Install
Dune Dependency
Authors
Maintainers
Sources
r1.1.3.tar.gz
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cf/Cf_clockface/index.html
Module Cf_clockface
Civil time in the 24-hour digital clock face notation.
Overview
This module implements record types inhabited by 24-hour digital clock face indications. It also provides related functions and types to facilitate conversion to and from various formats for data interchange.
val create : hour:int -> minute:int -> second:int -> time
Use create ~hour ~minute ~second
to create a 24-hour clock time value according to the ~hour
, ~minute
and ~second
parameters. Raises Invalid_argument
if the time specified is not a valid clock time. A clock time with second = 60
is only valid when hour = 23
and minute = 59
(as leap seconds may appear only at the end of an day, according to standard).
val to_seconds : time -> int
Use to_seconds t
to convert the time to an integer number of seconds since midnight (without counting any preceding leap seconds).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page