Home All Groups Group Topic Archive Search About
Author
4 Apr 2006 8:59 PM
Arne Garvander
How can I get the difference in minutes between DateTime.Now and
DateTime.UtcNow?

--
Arne Garvander
Certified Geek

Author
4 Apr 2006 9:10 PM
Markus Stoeger
Arne Garvander wrote:
> How can I get the difference in minutes between DateTime.Now and
> DateTime.UtcNow?

... something like:

DateTime now = DateTime.Now;
TimeSpan dt = now - now.ToUniversalTime();

Console.Out.WriteLine(dt.TotalMinutes);

hth?
Max

AddThis Social Bookmark Button