In C#, what is the difference between UTC and Universal Time? What are the fuctions available?
+2
A:
No difference. DateTime.UtcNow gives you the current time in UTC. The Timezone class has functions to convert to and from UTC date/time to date/time in any timezone.
Tom Cabanski
2010-04-16 18:07:28
+4
A:
I would think they're both the same - according to Wikipedia, UTC is Coordinated *Universal* Time
.
.NET supports UTC through a number of function on the DateTime
struct. E.g. there is are functions like DateTime.ToUniversalTime
(and DateTime.ToLocalTime
to convert back, of course) or DateTime.UtcNow
available.
marc_s
2010-04-16 18:08:29