/time

A date and time library for Carp

Primary LanguageC

time

A lightweight time library and datatype for Carp.

Installation

(load "git@github.com:carpentry-org/time.carp@0.0.7")

Usage

This library exports one important datatype, Datetime. It is meant to be a low friction datatype; this means that it should be relatively easy to create, modify, and convert to other types!

(load "git@github.com:carpentry-org/time.carp@0.0.7")

(defn main []
  (println* &(Datetime.strftime &(Datetime.now) "%Y-%m-%d %I:%M:%S.%n %p %z")))

You can find the API documentation online!


Have fun!