vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StarDate Class Reference

#include <stardate.h>

Public Member Functions

 StarDate ()
 
 StarDate (double time)
 
void Init (double time)
 
double GetCurrentStarTime (int faction=0)
 
double GetElapsedStarTime (int faction=0)
 
void InitTrek (string date)
 
string GetTrekDate (int faction=0)
 
string GetFullTrekDate (int faction=0)
 
string ConvertFullTrekDate (double date)
 The stardate format is ddd.hhmm:sec with ddd, hh, mm, sec = star day, hour, minute, seconds The second equals our terran second. The minute however has 480 seconds (HOURS_DIV=8) The hour has 60 minutes and the day has 100 hours. More...
 
void InitSDate (string date)
 
string GetSDate (int faction=0)
 
string GetFullSDate (int faction=0)
 
string SDateFromTrekDate (string trekdate)
 
string TrekDateFromSDate (string sdate)
 

Detailed Description

Definition at line 24 of file stardate.h.

Constructor & Destructor Documentation

StarDate::StarDate ( )

Definition at line 18 of file stardate.cpp.

StarDate::StarDate ( double  time)

Member Function Documentation

string StarDate::ConvertFullTrekDate ( double  date)

The stardate format is ddd.hhmm:sec with ddd, hh, mm, sec = star day, hour, minute, seconds The second equals our terran second. The minute however has 480 seconds (HOURS_DIV=8) The hour has 60 minutes and the day has 100 hours.

Definition at line 82 of file stardate.cpp.

double StarDate::GetCurrentStarTime ( int  faction = 0)

Definition at line 35 of file stardate.cpp.

double StarDate::GetElapsedStarTime ( int  faction = 0)

Definition at line 48 of file stardate.cpp.

string StarDate::GetFullSDate ( int  faction = 0)
string StarDate::GetFullTrekDate ( int  faction = 0)

Definition at line 148 of file stardate.cpp.

string StarDate::GetSDate ( int  faction = 0)
string StarDate::GetTrekDate ( int  faction = 0)

Definition at line 154 of file stardate.cpp.

void StarDate::Init ( double  time)

Definition at line 24 of file stardate.cpp.

void StarDate::InitSDate ( string  date)
void StarDate::InitTrek ( string  date)

Definition at line 62 of file stardate.cpp.

string StarDate::SDateFromTrekDate ( string  trekdate)
string StarDate::TrekDateFromSDate ( string  sdate)

The documentation for this class was generated from the following files: