Add more flexibility to construction of Time instances

This commit is contained in:
Erik Broberg
2016-06-05 18:35:40 -04:00
parent 9aea10b03e
commit 6285cac488
2 changed files with 27 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ class SyncBuffer;
class Time {
public:
Time();
Time(double secondsJ2000 = -1);
Time(const Time& other);
@@ -77,6 +77,8 @@ public:
*/
static void deinitialize();
static Time now();
/**
* Returns the reference to the Time singleton object.
* \return The reference to the Time singleton object
@@ -120,6 +122,8 @@ public:
*/
double currentTime() const;
double unsyncedJ2000Seconds() const;
/**
* Returns the current time as a formatted date string compliant with ISO 8601 and
* thus also compliant with the Spice library.