Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
KSPUtil.DefaultDateTimeFormatter Class Reference
Inheritance diagram for KSPUtil.DefaultDateTimeFormatter:
IDateTimeFormatter

Public Member Functions

int GetTimeSpanDay ()
 Get the UT Day from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00). More...
 
int GetTimeSpanHour ()
 Get the UT Hour from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00). More...
 
int GetTimeSpanMinute ()
 Get the UT Minute from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00). More...
 
int GetTimeSpanSecond ()
 Get the UT Seconds from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00). More...
 
int GetTimeSpanYear ()
 Get the UT Year from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00). More...
 
int GetUTDay ()
 Get the UT Day from the dateHolder array. More...
 
int GetUTHour ()
 Get the UT Hour from the dateHolder array. More...
 
int GetUTMinute ()
 Get the UT Minute from the dateHolder array. More...
 
int GetUTSecond ()
 Get the UT Seconds from the dateHolder array. More...
 
int GetUTYear ()
 Get the UT Year from the dateHolder array. More...
 
string PrintDate (double time, bool includeTime, bool includeSeconds=false)
 
string PrintDateCompact (double time, bool includeTime, bool includeSeconds=false)
 
string PrintDateDelta (double time, bool includeTime, bool includeSeconds, bool useAbs)
 
string PrintDateDeltaCompact (double time, bool includeTime, bool includeSeconds, bool useAbs)
 
string PrintDateDeltaCompact (double time, bool includeTime, bool includeSeconds, bool useAbs, int interestedPlaces)
 
string PrintDateNew (double time, bool includeTime)
 
string PrintTime (double time, int valuesOfInterest, bool explicitPositive)
 
string PrintTime (double time, int valuesOfInterest, bool explicitPositive, bool logEnglish)
 
string PrintTimeCompact (double time, bool explicitPositive)
 
string PrintTimeLong (double time)
 
string PrintTimeStamp (double time, bool days=false, bool years=false)
 
string PrintTimeStampCompact (double time, bool days=false, bool years=false)
 

Properties

int Day [get]
 
int Hour [get]
 
int Minute [get]
 
int Year [get]
 
- Properties inherited from IDateTimeFormatter
int Day [get]
 
int Hour [get]
 
int Minute [get]
 
int Year [get]
 

Member Function Documentation

int KSPUtil.DefaultDateTimeFormatter.GetTimeSpanDay ( )
inline

Get the UT Day from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00).

Returns
int KSPUtil.DefaultDateTimeFormatter.GetTimeSpanHour ( )
inline

Get the UT Hour from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00).

Returns
int KSPUtil.DefaultDateTimeFormatter.GetTimeSpanMinute ( )
inline

Get the UT Minute from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00).

Returns
int KSPUtil.DefaultDateTimeFormatter.GetTimeSpanSecond ( )
inline

Get the UT Seconds from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00).

Returns
int KSPUtil.DefaultDateTimeFormatter.GetTimeSpanYear ( )
inline

Get the UT Year from the dateHolder array - as a TimeSpan (ie starting at 0y,0d,00:00:00).

Returns
int KSPUtil.DefaultDateTimeFormatter.GetUTDay ( )
inline

Get the UT Day from the dateHolder array.

Returns
int KSPUtil.DefaultDateTimeFormatter.GetUTHour ( )
inline

Get the UT Hour from the dateHolder array.

Returns
int KSPUtil.DefaultDateTimeFormatter.GetUTMinute ( )
inline

Get the UT Minute from the dateHolder array.

Returns
int KSPUtil.DefaultDateTimeFormatter.GetUTSecond ( )
inline

Get the UT Seconds from the dateHolder array.

Returns
int KSPUtil.DefaultDateTimeFormatter.GetUTYear ( )
inline

Get the UT Year from the dateHolder array.

Returns
string KSPUtil.DefaultDateTimeFormatter.PrintDate ( double  time,
bool  includeTime,
bool  includeSeconds = false 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintDateCompact ( double  time,
bool  includeTime,
bool  includeSeconds = false 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintDateDelta ( double  time,
bool  includeTime,
bool  includeSeconds,
bool  useAbs 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintDateDeltaCompact ( double  time,
bool  includeTime,
bool  includeSeconds,
bool  useAbs 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintDateDeltaCompact ( double  time,
bool  includeTime,
bool  includeSeconds,
bool  useAbs,
int  interestedPlaces 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintDateNew ( double  time,
bool  includeTime 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintTime ( double  time,
int  valuesOfInterest,
bool  explicitPositive 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintTime ( double  time,
int  valuesOfInterest,
bool  explicitPositive,
bool  logEnglish 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintTimeCompact ( double  time,
bool  explicitPositive 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintTimeLong ( double  time)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintTimeStamp ( double  time,
bool  days = false,
bool  years = false 
)
inline

Implements IDateTimeFormatter.

string KSPUtil.DefaultDateTimeFormatter.PrintTimeStampCompact ( double  time,
bool  days = false,
bool  years = false 
)
inline

Implements IDateTimeFormatter.

Property Documentation

int KSPUtil.DefaultDateTimeFormatter.Day
get
int KSPUtil.DefaultDateTimeFormatter.Hour
get
int KSPUtil.DefaultDateTimeFormatter.Minute
get
int KSPUtil.DefaultDateTimeFormatter.Year
get

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