コード例 #1
0
 static public double GetJNowForFutureTime(double delta)
 {
     try
     {
         if (syncToClock)
         {
             Date future = new Date(Now.GetTime() + (int)(delta * 1000 * timeRate));
             return(UtcToJulian(future));
         }
         else
         {
             return(UtcToJulian(Now));
         }
     }
     catch
     {
         return(UtcToJulian(Now));
     }
 }
コード例 #2
0
 static public Date GetTimeForFutureTime(double delta)
 {
     try
     {
         if (syncToClock)
         {
             Date future = new Date((int)((int)Now.GetTime() + (delta * 1000) * timeRate));
             return(future);
         }
         else
         {
             return(Now);
         }
     }
     catch
     {
         return(Now);
     }
 }