본문 바로가기
반응형

C#61

[C#] TimeZoneInfo TimeZoneInfo (System.TimeZoneInfo) TimeZoneInfo Class (System) Represents any time zone in the world. learn.microsoft.com TimeZoneInfo 클래스 (.NET 3.5) - TimeZone과 비슷한 방식, 더 강력하다 - 세계의 모든 시간대에 관한 정보를 얻을 수 있음 - 일광 절약 시간제에 관해서 좀 더 풍부한 규칙 기반 모형을 제공 TimeZoneInfo 객체 생성 - TimeZoneInfo.Local, TimeZoneInfo.Utc - TimeZoneInfo.FindSystemTimeZoneById 정보 획득 - Id, DisplayName, BaseUtcOffset - SupportsDaylightS.. 2023. 8. 11.
[C#] TimeZone TimeZone (System.TimeZone) TimeZone Class (System) Represents a time zone. learn.microsoft.com [System.Runtime.InteropServices.ComVisible(true)] public abstract class TimeZone TimeZone 클래스 - 시간대 이름, UTC 오프셋, 일광절약시간제 규칙에 관한 정보 제공 - 우리나라에서는 일광 절약 시간제를 쓰지 않기 때문에 큰 의미가 없다 - CurrentTimeZone: 현재 지역에 대한 TimeZone 정보를 받아옴 - StandardName: 지역 시간대 이름 - DaylightName: 지역 일광 절약 시간 이름 - IsDaylightSavingTime: 해당.. 2023. 8. 10.
[C#] DateTime & DateTimeOffset DateTime & DateTimeOffset (System.DateTime & System.DateTimeOffset) DateTime Struct (System) Represents an instant in time, typically expressed as a date and time of day. learn.microsoft.com public struct DateTime : IComparable, IComparable, IConvertible, IEquatable, IFormattable, System.Runtime.Serialization.ISerializable DateTimeOffset Struct (System) Represents a point in time, typically expr.. 2023. 7. 6.
[C#] TimeZoneInfo TimeZoneInfo (System.TimeZoneInfo) TimeZoneInfo Class (System) Represents any time zone in the world. learn.microsoft.com TimeZoneInfo 클래스 (.NET 3.5) - TimeZone과 비슷한 방식, 더 강력하다 - 세계의 모든 시간대에 관한 정보를 얻을 수 있음 - 일광 절약 시간제에 관해서 좀 더 풍부한 규칙 기반 모형을 제공 TimeZoneInfo 객체 생성 - TimeZoneInfo.Local, TimeZoneInfo.Utc - TimeZoneInfo.FindSystemTimeZoneById 정보 획득 - Id, DisplayName, BaseUtcOffset - SupportsDaylightS.. 2023. 7. 5.
반응형