org.abh80.nf.core.time.AbsoluteTime
See theAbsoluteTime companion class
Attributes
-
Companion
-
class
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Creates an AbsoluteTime from a Modified Julian Date (MJD).
Creates an AbsoluteTime from a Modified Julian Date (MJD).
==Math Note==
- MJD = JD - 2400000.5
- Conversion:
JD = MJD + 2400000.5
seconds_since_J2000 = (JD - 2451545.0) * 86400
Value parameters
-
mjd
-
the Modified Julian Date
-
seconds
-
optional seconds offset (default = 0)
-
timeScale
-
the timescale to use
Attributes
-
Returns
-
an AbsoluteTime corresponding to the given MJD
Returns the current system time as an AbsoluteTime in UTC.
Returns the current system time as an AbsoluteTime in UTC.
==Math Note==
- Uses Instant.now (system clock, UTC).
- Conversion: epoch_seconds → J2000 offset.
Attributes