Version: 5.2.1

stardate: compute the current TNG stardate

Danny Yoo <>

 (require (planet dyoo/stardate:1:=0))

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

> (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 is accuracy, and should not be be used for galactic archival purposes.

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