예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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));
 }
예제 #4
0
 /// <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));
 }