차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
linux_time_utc_kst_rtc [2021/05/05 16:35] – 만듦 koovlinux_time_utc_kst_rtc [2021/05/05 16:40] (현재) koov
줄 88: 줄 88:
  
 ''RTC''를 ''localtime'' 으로 사용하는 설정입니다. ''RTC''를 ''localtime'' 으로 사용하는 설정입니다.
 +
 +이렇게 설정하게 되면 이제부터는 반대로 ''UTC''를 계산할때 ''RTC''에서 ''localtime''인 ''09:00''을 뺀 시간으로 계산하게 됩니다.
 +
 +
 +<WRAP prewrap>
 +<code bash>
 +root@talk:~# timedatectl set-local-rtc yes
 +root@talk:~# timedatectl 
 +               Local time: Thu 2021-05-06 01:38:28 KST
 +           Universal time: Wed 2021-05-05 16:38:28 UTC
 +                 RTC time: Thu 2021-05-06 01:38:28
 +                Time zone: Asia/Seoul (KST, +0900)
 +System clock synchronized: yes
 +              NTP service: active
 +          RTC in local TZ: yes
 +
 +Warning: The system is configured to read the RTC time in the local time zone.
 +         This mode cannot be fully supported. It will create various problems
 +         with time zone changes and daylight saving time adjustments. The RTC
 +         time is never updated, it relies on external facilities to maintain it.
 +         If at all possible, use RTC in UTC by calling
 +         'timedatectl set-local-rtc 0'.
 +</code>
 +</WRAP>
 +
 +다만 이렇게 셋팅하게 될 경우 여타 다른 프로그램 사용중 문제가 발생할 수 있음을 경고 하는 문구가 나오게 됩니다.
  
  • linux_time_utc_kst_rtc.1620232544.txt.gz
  • 마지막으로 수정됨: 2021/05/05 16:35
  • 저자 koov