AstronomyObservationFormattedTime Method
Formats the time portion of a
DateTimeOffset in the given time format.
Namespace: InnerDrive.GeographyAssembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.2.9017.0
public static string FormattedTime(
DateTimeOffset displayTime,
string? timeFormatString = "t"
)
- displayTime DateTimeOffset
- The DateTimeOffset to format.
- timeFormatString String (Optional)
- The date-time format to use.
StringA
String.
If
displayTime equals
MinValue,
the method returns "--:--". If
displayTime equals
MaxValue,
the method returns the string resource for "not today".