Spacecraft.ElapsedSecondsFromEpoch(Variable) Method

Top 

Description

Returns the number of seconds between a user-specified epoch and the current Spacecraft epoch. The user-specified epoch might be either a value or a Variable object. This is a property of the spacecraft and not of the scenario as a whole. Two similar spacecraft may return different ElaspedSecondsFromEpoch at a single instance due to their specific integrator's step size.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

 

Method Signature

Spacecraft.ElapsedSecondsFromEpoch(

Variable referenceEpoch)

 

 

Arguments

referenceEpoch


Description:

Base epoch to measure elapsed seconds, which can be either a value or a Variable. The base epoch is in TAI Modified Julian Time format, from which the elapsed seconds are measured.

 

 

 

Return Value

Type:

number

Units:

s

 

 

Returns the number of seconds between a user-specified epoch and the current Spacecraft epoch.

 

Syntax

myVariable1 = mySpacecraft1.ElapsedSecondsFromEpoch(myVariable2);

 

 

See also

Spacecraft Object

Spacecraft Propagation Guide

Coverage and Contact Analysis Guide