Search This Blog

Tuesday, September 15, 2015

Convert to double TimeSpan C#

C# > System > TimeSpan Structure

TimeSpan represents a time structure.

Examples

1. Convert to double
   
  TimeSpan ts = TimeSpan.FromMinutes(12.45);

  double time = ts.TotalMinutes;