AbsoluteTime

org.abh80.nf.core.time.AbsoluteTime
See theAbsoluteTime companion class
object AbsoluteTime

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

implicit class BinOp(self: AbsoluteTime)

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 Object
trait Matchable
class Any

Value members

Concrete methods

def fromMJDDate(mjd: Int, timeScale: TimeScale, seconds: TimeFormat): AbsoluteTime

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

def now(): AbsoluteTime

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

final implicit def BinOp(self: AbsoluteTime): BinOp

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