I’m trying to learn how Timespan (in C#) works, but the online resources I’ve viewed so far have really confused me. I was wondering if someone could walk me through a really simple scenario?
Say for example, I had a ‘StartTime’ (I’m guessing I use an ‘Assign’, using System.DateTime.Now), and then some time later, I get a ‘LaterTime’ (again, using System.DateTime.Now). Would I then use Timespan to calculate the difference between the two times? If so, how would I do this? And would the ‘StartTime’ and ‘LaterTime’ variables be of type ‘Object’, or would they be ‘DateTime’?
Sorry if these are really silly questions, but I’m SO confused!
Thank you for this. I’ve almost got it working, but I don’t have the TimeSpan variable type listed; when I browse for it, it’s not available. Is there a plugin or something that I might be missing?