Gravity Engine 2 3.0
Loading...
Searching...
No Matches
GravityEngine2.TimeUtils Class Reference

Classes

class  MDHMS
 

Static Public Member Functions

static MDHMS Days2mdhms (int year, double days)
 
static double[] InvJday (double jd)
 
static string JDTimeFormattedYD (double jd)
 
static string JDTimeFormattedYMDhms (double jd)
 Return the date formated with year month day hour:min sec.
 
static double JDtoEpochYearDays (double jd)
 
static double JulianDate (int year, int month, int day, double utime)
 
static double SecondsToDHMS (double sec)
 
static string SecToDHMSString (double sec)
 
static double SecToJD (double sec)
 
static string WorldTimeFormattedYYDD (double worldTime, GBUnits.Units units, double startTimeJD=0)
 

Static Public Attributes

static int
 
const int SEC_PER_DAY = 3600 * 24
 
const int SEC_PER_HOUR = 3600
 
const int SEC_PER_MIN = 60
 

Member Function Documentation

◆ InvJday()

static double[] GravityEngine2.TimeUtils.InvJday ( double jd)
static

                       procedure invjday

this procedure finds the year, month, day, hour, minute and second given the julian date. tu can be ut1, tdt, tdb, etc.

algorithm : set up starting values find leap year - use 1900 because 2000 is a leap year find the elapsed days through the year in a loop call routine to find each individual value

author : david vallado 719-573-2600 1 mar 2001

inputs description range / units jd - julian date days from 4713 bc

outputs : year - year 1900 .. 2100 mon - month 1 .. 12 day - day 1 .. 28,29,30,31 hr - hour 0 .. 23 min - minute 0 .. 59 sec - second 0.0 .. 59.999

locals : days - day of year plus fractional portion of a day days tu - julian centuries from 0 h jan 0, 1900 temp - temporary double values leapyrs - number of leap years from 1900

coupling : days2mdhms - finds month, day, hour, minute and second given days and year

references :

vallado 2007, 208, alg 22, ex 3-13

Parameters
jd
Returns
[year,mon,day,hr,minute,sec]

◆ JDTimeFormattedYMDhms()

static string GravityEngine2.TimeUtils.JDTimeFormattedYMDhms ( double jd)
static

Return the date formated with year month day hour:min sec.

Parameters
jd
Returns

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