package lunar

  1. Overview
  2. Docs
A very small date management library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lunar-1.3.0.tbz
sha256=cc0dc0ca027423d1892392872f7be35ff2c1acc5579ddf895b60cd6c77534e4a
sha512=5a252698e6bf0eb23f41d61c5b56deee03c8e7ccc7dca11145388e9cf1a12e5046c3cb09ee3472fe67dca700387aa108616c9eb128e154faec0f6d11eaaf010a

doc/lunar.unix/Lunar_unix/index.html

Module Lunar_unixSource

Helpers for using Lunar with the Unix module, including functions to calculate the offset of the current time zone (of the process running the program) and the time t.

from_tm unix_tm converts a Unix datetime (Unix.tm) to a Lunar.Datetime.t.

Sourceval utc : float -> Lunar.Zoned_datetime.t

utc time returns the UTC zoned datetime corresponding to the given time.

Sourceval local : float -> Lunar.Zoned_datetime.t

local time returns the local zoned datetime corresponding to the given time.

Sourceval tz : float -> Lunar.Timezone.t

tz time compute the current tz-offset of the running process.

Sourceval tz_now : unit -> Lunar.Timezone.t

tz_now () returns the current timezone offset.

Sourceval utc_now : unit -> Lunar.Zoned_datetime.t

utc_now () returns the current datetime zoned to UTC.

Sourceval local_now : unit -> Lunar.Zoned_datetime.t

local_now () returns the current datetime zoned to tz time.