Calculates the Julian Date given a time in seconds since the system epoch.
This function takes in seconds since epoch and returns the datetime in Julian Date format. Since the input time is seconds since system epoch (Jan 1, 1970 at midnight for linux), the JulianDate function uses the system gmtime() function to convert to a DateTime struct. - Warning:
- be careful of differences in system epoch times (Unix vs. Windows).
- Parameters:
-
_time | The time to be converted in seconds since the system epoch time. |
- Returns:
- this function returns the conversion from seconds since system epoch time to Julian Date.
Definition at line 30 of file Time.cpp. |