... | @@ -62,7 +62,7 @@ namespace ConsoleApplication1 |
... | @@ -62,7 +62,7 @@ namespace ConsoleApplication1 |
|
Console.WriteLine(utcNow); //협정 세계시 출력 .Local로 하면 지역시간 반영
|
|
Console.WriteLine(utcNow); //협정 세계시 출력 .Local로 하면 지역시간 반영
|
|
|
|
|
|
DateTime myBirthday = new DateTime(now.Year, 1, 24);
|
|
DateTime myBirthday = new DateTime(now.Year, 1, 24);
|
|
Console.WriteLine(myBirthday.Kind); //지정하지 않았으므로 Unspecified 출력
|
|
Console.WriteLine(myBirthday.Kind); //Local이나 Utc인지를 리턴하는데, 지정하지 않았으므로 Unspecified 출력
|
|
|
|
|
|
DateTime endOfYear = new DateTime(DateTime.Now.Year, 12, 31);
|
|
DateTime endOfYear = new DateTime(DateTime.Now.Year, 12, 31);
|
|
TimeSpan dayGaps = endOfYear - now; //DateTime의 빼기연산해서 나온 결과값은 TimeSpan으로 나온다.
|
|
TimeSpan dayGaps = endOfYear - now; //DateTime의 빼기연산해서 나온 결과값은 TimeSpan으로 나온다.
|
... | | ... | |