AstronomyObservationFormattedTime Method

Formats the time portion of a DateTimeOffset in the given time format.

Definition

Namespace: InnerDrive.Geography
Assembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.2.9017.0
C#
public static string FormattedTime(
	DateTimeOffset displayTime,
	string? timeFormatString = "t"
)

Parameters

displayTime  DateTimeOffset
The DateTimeOffset to format.
timeFormatString  String  (Optional)
The date-time format to use.

Return Value

String
A String.

Remarks

If displayTime equals MinValue, the method returns "--:--". If displayTime equals MaxValue, the method returns the string resource for "not today".

See Also