Convert integer to timespan [closed]

You can use the From methods, those will allow you to convert days/hours/minutes/seconds/milliseconds/ticks to TimeSpam format as follows:

TimeSpan ts = TimeSpan.FromTicks(486000000000);
Console.WriteLine(ts.ToString());

You can replace FromTicks with

  • FromDays
  • FromHours
  • FromMilliseconds
  • FromMinutes
  • FromSeconds
  • FromTicks

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)