These conversion routines convert to and from Star Trek: The Next Generation style Stardates. These stardates take the form YYXXX.XX where the first two digits refer to the year with 2323 being year zero and the remaining digits being the decimal portion of the year. The last digit before the decimal point is one stardate and is approximately eight and three quarter hours in length.
For more information on stardates see Stardates in Star Trek FAQ also posted monthly to the rec.arts.startrek.tech newsgroup.
This first conversion makes stardates different lengths in leap years and non leap years. It can handle dates from any year. Dates before 2323 will be negative. Years before 2223 or after 2423 have a three digit year number and are therefore of the form YYYXXX.XX
Enter date and time GMT.
Converts positive stardates to date and time GMT.