FixedTimeOffsetScale

org.abh80.nf.core.time.FixedTimeOffsetScale
class FixedTimeOffsetScale(val name: String, val offset: TimeFormat) extends TimeScale

A time scale that applies a fixed offset to TAI.

Value parameters

name

The name of this time scale.

offset

The fixed offset to apply to TAI. This offset represents the difference between the target time scale and TAI. For example, if the target time scale is always 10 seconds ahead of TAI, then the offset should be +10 seconds.

Attributes

Graph
Supertypes
trait TimeScale
class Object
trait Matchable
class Any
Known subtypes
class GPSScale
class IRNSSScale
class TAIScale
class TTScale
class TDTScale

Members list

Value members

Concrete methods

override def timePastTAI(date: AbsoluteTime): TimeFormat

Gets the time past TAI for this time scale.

Gets the time past TAI for this time scale.

Attributes

Returns

The fixed offset, representing the time past TAI.

Definition Classes
override def timeToTAI(date: Date, time: Time): TimeFormat

Gets the time to TAI from this time scale.

Gets the time to TAI from this time scale.

Attributes

Returns

The negation of the fixed offset, representing the time to TAI.

Definition Classes

Inherited methods

Returns the most recent leap second adjustment applied to this time scale.

Returns the most recent leap second adjustment applied to this time scale.

For time scales without leap seconds, this returns zero.

Attributes

Returns

The most recent leap second adjustment as a TimeFormat

Inherited from:
TimeScale

Retrieves the leap second adjustment for the given absolute time.

Retrieves the leap second adjustment for the given absolute time.

Value parameters

time

The absolute time for which to determine the leap second adjustment.

Attributes

Returns

The leap second adjustment as a TimeFormat instance.

Inherited from:
TimeScale
def getName: String

Gets the identifying name of this time scale.

Gets the identifying name of this time scale.

Attributes

Returns

The name of this time scale (e.g., "UTC", "TAI", "TT")

Inherited from:
TimeScale
def isInsideLeapSecond(time: AbsoluteTime): Boolean

Determines if a given absolute time falls within a leap second.

Determines if a given absolute time falls within a leap second.

For time scales that don't use leap seconds (like TAI), this always returns false. For UTC, this would return true during leap second events.

Value parameters

time

The absolute time to check

Attributes

Returns

true if the time is inside a leap second, false otherwise

Inherited from:
TimeScale
def minuteDuration(time: AbsoluteTime): Int

Duration of a minute in seconds. Default is 60 seconds for most time scales. May differ for specialized astronomical time scales.

Duration of a minute in seconds. Default is 60 seconds for most time scales. May differ for specialized astronomical time scales.

Attributes

Inherited from:
TimeScale
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
TimeScale -> Any
Inherited from:
TimeScale

Concrete fields

override protected val name: String

The name identifier of this time scale

The name identifier of this time scale

Attributes