JulianDate Methods |
The JulianDate type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add |
Adds a Duration to this Julian date, producing a new JulianDate.
|
![]() | AddClamped |
Adds a Duration to this Julian date, producing a new JulianDate.
Unlike Add(Duration), this method will clamp the result to the valid range
of values for JulianDate rather than throwing an exception.
In most cases, Add(Duration) should be used instead.
|
![]() | AddDays |
Adds the specified number of days to this date and returns the new date.
|
![]() | AddHours |
Adds the specified number of hours to this date and returns the new date.
|
![]() | AddMinutes |
Adds the specified number of minutes to this date and returns the new date.
|
![]() | AddSeconds |
Adds the specified number of seconds to this date and returns the new date.
|
![]() | CompareTo(JulianDate) |
Compares this instance with another instance of the same type.
|
![]() | CompareTo(Object) |
Compares this instance with another instance of the same type.
|
![]() | DaysDifference |
Computes the number of days that have elapsed from this Julian date to the
other Julian date.
|
![]() | Equals(JulianDate) |
Returns true if this date exactly equals another date.
To be considered equal, Day and SecondsOfDay
must be identical when converted to a common time standard.
It is highly recommended that you use EqualsEpsilon(JulianDate, Double) or
IsIdentical(JulianDate) instead of this method.
|
![]() | Equals(Object) |
Returns true if this date exactly equals another date.
To be considered equal, Day and SecondsOfDay
must be identical when converted to a common time standard.
It is highly recommended that you use EqualsEpsilon(JulianDate, Double) or
IsIdentical(JulianDate) instead of this method.
(Overrides ValueType.Equals(Object).) |
![]() | EqualsEpsilon |
Returns true if this date is within epsilon seconds of the specified date.
That is, in order for the dates to be considered equal (and for
this function to return true), the absolute value of the difference between them,
in seconds, must be less than or equal to epsilon.
|
![]() ![]() | GetCenterOfWindow |
Divides time into windows, each of length windowLength seconds,
with the first window centered on referenceEpoch.
Then, identifies which window contains date
and returns the date that is at the center of that window.
This is helpful for computing a discrete value for a range of Julian dates.
|
![]() | GetHashCode |
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueType.GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsIdentical |
Returns true if this date is identical to another date.
Unlike Equals(JulianDate), this method will
consider two dates with different time standards to be different,
even if the dates represent the same moment when expressed in the same time standard.
|
![]() ![]() | JulianDateToYearFraction |
Computes the fraction of the year corresponding to the given Julian date.
|
![]() | MinutesDifference |
Computes the number of minutes that have elapsed from this Julian date to the
other Julian date.
|
![]() | SecondsDifference |
Computes the number of seconds that have elapsed from this Julian date to the
other Julian date.
|
![]() | Subtract(Duration) |
Subtracts a Duration from this Julian date, producing a new JulianDate.
|
![]() | Subtract(JulianDate) |
Subtracts another Julian date from this Julian date.
|
![]() | SubtractDays |
Subtracts the specified number of days from this date and returns the new date.
|
![]() | SubtractHours |
Subtracts the specified number of hours from this date and returns the new date.
|
![]() | SubtractMinutes |
Subtracts the specified number of minutes from this date and returns the new date.
|
![]() | SubtractSeconds |
Subtracts the specified number of seconds to this date and returns the new
date.
|
![]() | ToDateTime() |
Converts this JulianDate to a DateTime
with a default time standard of CoordinatedUniversalTime (UTC).
|
![]() | ToDateTime(TimeStandard) |
Converts this JulianDate to a DateTime
expressed in the specified time standard.
|
![]() | ToGregorianDate() |
Converts this JulianDate to a GregorianDate
with a default time standard of CoordinatedUniversalTime (UTC).
|
![]() | ToGregorianDate(TimeStandard) |
Converts this JulianDate to a GregorianDate
expressed in the specified time standard.
|
![]() | ToString |
Returns the value of this JulianDate in the standard format.
(Overrides ValueType.ToString().) |
![]() | ToTimeStandard |
Converts this JulianDate to the specified time standard.
|
![]() | TryConvertTimeStandard |
Try to convert this JulianDate to the specified
TimeStandard, if the specified TimeStandard is
capable of representing this time.
|