Yes, there is currently no proxy provided for TimeSpan.ToString(string). You can always use the following:

1
2
let showTimeSpan (t: TimeSpan) =
  sprintf "%02:%02:%02" t.Hours t.Minutes t.Seconds

For the sorting, TimeSpan is proxied as an integer so default sorting works as expected.

By on 11/24/2015 3:52 AM ()

Thanks, I've written exactly the same function just before you answered :)

By on 11/24/2015 5:02 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper