TimeDaylightSavings

서머타임으로 전환한 경우 데이라이트 세이빙 시간(초)에 대한 보정을 반환. 컴퓨터의 시간 설정에 따라 다릅니다.

int  TimeDaylightSavings();

값 반환

윈터타임(표준)으로 전환한 경우 0을 반환.

예:

void OnStart()
  {
//--- 서머 타임 조정을 초 단위로 가져옵니다.
   int sec_dl=TimeDaylightSavings();
   
//--- 수신된 값을 설명하는 텍스트를 생성합니다.
   string text=(sec_dl==0 ? "Standard \"winter\" time is used" : 
                StringFormat("Daylight saving time has been switched over. The correction is %d seconds"sec_dl));
   
//--- 로그에 서머 타임 조정에 대한 설명을 초 단위로 표시합니다.
   Print(text);
   /*
   Result for "winter" time:
   Standard "winter" time is used
   
   Result for "summer" time:
   Daylight saving time has been switched overThe correction is -3600 seconds
   */
  }