stardate:   compute the current TNG stardate
date->stardate
8.12

stardate: compute the current TNG stardate🔗ℹ

Danny Yoo <dyoo@hashcollision.org>

 (require stardate) package: stardate

The package computes the current stardate based on the scheme used by Star Trek, The Next Generation.

> (require stardate)
> (require racket/date)
> (date->stardate (current-date))

"77570.2"

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.

procedure

(date->stardate a-date)  string

  a-date : date
Given a date, produces its stardate as a string.