Time

  • Thread starter Thread starter Dagan
  • Start date Start date
D

Dagan

Hi All

When getting time updated event, when the system time is changed, I would
like to get the difference from the last value of TimeDate (before the
change) to the current value, is there any way that gives that and ready to
use in C#?

Thanks in advance
 
This functionality is not built in. You have to build it in. You should
prefer converting to UTC time before doing your math to avoid the extra hour
that is added or subtracted from the day we time crosses over. For instance:
DateTime.UtcNow() and then performing your math.
 
Back
Top