2017-08-26

(sph time utc)

utc related time calculations

module name

(sph time utc)

module bindings

library description

utc uses leap seconds to ensure that (/ utc-seconds 86400) is the number of elapsed days.

future leap second inserts are unfortunately not predictable and so future tai times can not be calculated accurately, only day dependent dates

import name

(sph time utc)

exports

sph-time-utc-description

variable

utc-duration->hms

procedure

signature

a [c] ->

description

integer [procedure:{hour minute second} -> any] -> (integer integer integer)

utc-seconds to hours, minutes and seconds of hour

utc-duration-from-hms

procedure

signature

hours minutes seconds ->

integer ... -> integer

description

utc duration are seconds from zero, unrelated to the unix epoch

utc-leap-second?

procedure

signature

a ->

utc-leap-seconds

variable

utc-nanoseconds-day

variable

utc-nanoseconds-hour

variable

utc-nanoseconds-minute

variable

utc-nanoseconds-week

variable

utc-seconds-day

variable

utc-tai->leap-second-difference

procedure

signature

a ->


tags: programming guile documentation library scheme sph-lib computer utc time sph-time-utc