Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c3b57c5751
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (21 sloc) 0.838 kB
#lang scribble/manual
@(require scribble/eval
planet/scribble
(for-label (this-package-in main)))
@(define my-eval (make-base-eval))
@title{stardate: compute the current TNG stardate}
@author+email["Danny Yoo" "dyoo@hashcollision.org"]
@defmodule/this-package[main]
The package computes the current stardate based on the scheme used by
@link["http://en.wikipedia.org/wiki/Star_Trek:_The_Next_Generation"]{Star
Trek, The Next Generation}.
@interaction[#:eval my-eval
(require (planet dyoo/stardate))
(require racket/date)
(date->stardate (current-date))]
Note: this package has not yet been reviewed by the Starfleet Corps of
Engineers for its accuracy, and should not be be used for galactic
archival purposes.
@defproc[(date->stardate [a-date date]) string]{
Given a date, produces its stardate as a string.
}
Jump to Line
Something went wrong with that request. Please try again.