Time and date values are always transferred by milliseconds value.
For C#:
- To get a time span from milliseconds, use
TimeSpan.FromMilliseconds
- To get a date and time from milliseconds, use
DateTime.Parse
as mentioned here
In C++ there is also a way to do it.
In C#, causing a delay, as Select
function does in your code, is made by Thread.Sleep
call.