2017-08-27

(sph time rfc3339)

parse and create strings in the rfc3339 time format

part of sph-lib

library description

rfc3339 is a subset of iso8601 and is used for example in the atom syndication format.

this is a comprehensive implementation that uses a parsing expression grammar.

ns: nanoseconds

import name

(sph time rfc3339)

exports

sph-time-rfc3339-description

variable

utc->rfc3339

procedure

signature

a [offset seconds-fraction] ->

integer:posix-time -> string

utc-from-rfc3339

procedure

signature

a ->

string -> integer:seconds:posix-time

does not include fractional seconds; see rfc3339 ->

description

seconds-and-fraction for that

utc-ns-from-rfc3339

procedure

signature

a ->

string -> (integer:tai-utc-unix-seconds . integer:seconds-fraction)


tags: programming guile documentation library scheme sph-lib q1 computer time rfc3339 highlight sph-time-rfc3339