Konvertiert eine formatierten Zeichenkette in C#

Time.ToString("0.0") zeigt sich als eine dezimal "1.5" für statt 1:30. Wie kann ich für die Darstellung in einem Zeit-format?

private void xTripSeventyMilesRadioButton_CheckedChanged(object sender, EventArgs e)
{
    //calculation for the estimated time label
    Time = Miles / SeventyMph; 
    this.xTripEstimateLabel.Visible = true;
    this.xTripEstimateLabel.Text = "Driving at this speed the estimated travel time in hours is: " + Time.ToString("0.0") + " hrs";
}
  • Welche Art ist die Zeit? ist es schwimmen?
Schreibe einen Kommentar