Hey guys how can I convert a "timespan" datatype to "long"?
cheers psilos
Hey guys how can I convert a "timespan" datatype to "long"?
cheers psilos
Assuming you use .NET, Use:
MyTimeSpan.Ticks()
and to convert back (sample in VB.NET, C# implementation is trivial nontheless):
MyTimeSpan = New TimeSpan(totalTicks)