Just a little bit of boredom here, and I happened to be watching an episode of Star Trek: TNG, so I decided I would cobble up a little function to calculate a valid stardate.
Fairly novel function, but who knows...someone writing a video game could use it.
public double calculateStardate()
DateTime calenderStarTrek = new DateTime(2323, 1, 1, 0, 0, 0);
DateTime presentLocalDate = DateTime.Now;
presentLocalDate = presentLocalDate.AddYears(377);
TimeSpan timeOffset = presentLocalDate - calenderStarTrek;
double yearValue = timeOffset.TotalMilliseconds / (60 * 60 * 24 * 365.2422);
double stardate = Math.Floor(yearValue * 100);
stardate = stardate / 100;
Comments, suggestions and code rewrites appreciated. I handle criticism well