Attributes
- Companion
- class
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AbsoluteTime.type
Members list
Type members
Classlikes
Implicit class providing convenient operators for shifting an AbsoluteTime
by a given duration.
Implicit class providing convenient operators for shifting an AbsoluteTime
by a given duration.
==Math Note==
- Shifting is equivalent to:
new_time = old_time + Δt
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
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
Implicits
Implicits
Implicit class providing convenient operators for shifting an AbsoluteTime
by a given duration.
Implicit class providing convenient operators for shifting an AbsoluteTime
by a given duration.
==Math Note==
- Shifting is equivalent to:
new_time = old_time + Δt