Is C# DateTimeKind.Local referring to the computer or the business object?

Viewed 365

I'm writing a program handling the transcript of US Airways Flight 1549, which starts at 15:05:34 the 15th of January 2009 local time.

I'm going to store the time in an DateTime variable, but am confused about the DateTimeKind.Local parameter.

If i store the time like below...

var startTime = new DateTime(2009, 1, 15, 15, 5, 34, DateTimeKind.Local);

... am I saying that the time starts 15:05 local time for the plane, i.e US Eastern Time, or local time for the computer running the program, i.e Swedish Standard Time?

1 Answers

DateTimeKind.Local describes a DateTime as local to the running thread's locale, in this case your system's clock time. The built in DateTime is usually seen as a mistake by a lot of people because it's fairly inadequate. A library might give you more success.

Related