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.
 

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