/// <summary> /// Set a single time stamp in the <see cref="ITimeSet"/> /// </summary> /// <param name="timeSet">Time set to update</param> /// <param name="startAsMJD">Start Time as Modified Julian Day</param> /// <param name="endAsMJD">End Time as Modified Julian Day</param> public static void SetSingleTimeSpan(this ITimeSet timeSet, double startAsMJD, double endAsMJD) { timeSet.SetSingleTime(new Time(startAsMJD, endAsMJD - startAsMJD)); }
/// <summary> /// Set a single time stamp in the <see cref="ITimeSet"/> /// </summary> /// <param name="timeSet">Time set to update</param> /// <param name="dateTime">Time to use</param> public static void SetSingleTimeStamp(this ITimeSet timeSet, DateTime dateTime) { timeSet.SetSingleTime(new Time(dateTime)); }
/// <summary> /// Set a single time stamp in the <see cref="ITimeSet"/> /// </summary> /// <param name="timeSet">Time set to update</param> /// <param name="dateTime">Time to use</param> /// <param name="durationInDays">Duration of span</param> public static void SetSingleTimeSpan(this ITimeSet timeSet, DateTime dateTime, double durationInDays) { timeSet.SetSingleTime(new Time(dateTime, durationInDays)); }
/// <summary> /// Set a single time stamp in the <see cref="ITimeSet"/> /// </summary> /// <param name="timeSet">Time set to update</param> /// <param name="timestampAsMJD">Time to use</param> public static void SetSingleTimeStamp(this ITimeSet timeSet, double timestampAsMJD) { timeSet.SetSingleTime(new Time(timestampAsMJD)); }