Milliseconds to TimeSpan

  • Thread starter Thread starter Jan Roelof de Pijper
  • Start date Start date
J

Jan Roelof de Pijper

Hi group,

Is there an easy way to convert a long representing milliseconds
elapsed to a TimeSpan value?

Thanks,
Jan Roelof
 
public TimeSpan
int days
int hours
int minutes
int seconds
int millisecond
)

so

TimeSpan timeSpan = new TimeSpan(0, 0, 0, 0, myMillisecondValue)
 
Hi group,

Is there an easy way to convert a long representing milliseconds
elapsed to a TimeSpan value?

Thanks,
Jan Roelof


Thank you both!

Jan Roelof
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top