#navi(../)
* BIOSクロックがUTCか確認する方法 [#u53988e2]
BIOSで指定できる時間がUTCかどうか確認する方法を以下に記します。~
確認したディストリビューションはCentOSとUbuntuになります。

#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)

* 関連記事 [#e54d8a60]
-[[指定したタイムゾーンのローカルタイムを表示する方法・TZ>逆引きUNIXコマンド/指定したタイムゾーンのローカルタイムを表示する方法・TZ]]
-[[マシンの日時を設定・変更する・date, ntpdate>逆引きUNIXコマンド/マシンの日時を設定・変更する・date, ntpdate]]
-[[日時の表示フォーマット変更・dateコマンド>逆引きUNIXコマンド/日時の表示フォーマット変更・dateコマンド]]
-[[翌日の日付を取得・dateコマンド>逆引きUNIXコマンド/翌日の日付を取得・dateコマンド]]
-[[前日の日付を取得・dateコマンド>逆引きUNIXコマンド/前日の日付を取得・dateコマンド]]
-[[出力情報に日時情報を付加したい>逆引きUNIXコマンド/出力情報に日時情報を付加したい]]
-[[Nヶ月とN日前の日付を取得・dateコマンド>逆引きUNIXコマンド/Nヶ月とN日前の日付を取得・dateコマンド]]
-[[UNIX時間に変換・UNIX時間を取得する方法>逆引きUNIXコマンド/UNIX時間に変換・UNIX時間を取得する方法]]
-[[今日の日付が月末かどうかをdateコマンドで確認する方法>逆引きシェルスクリプト/今日の日付が月末かどうかをdateコマンドで確認する方法]]

* Ubuntuで確認する方法 [#wf58bfda]
以下のファイル内のUTCの値を確認します。
 /etc/default/rcS
以下、catコマンドで出力した結果です。
 sakura@ubuntu:~$ cat /etc/default/rcS
 #
 # /etc/default/rcS
 #
 # Default settings for the scripts in /etc/rcS.d/
 #
 # For information about these variables see the rcS(5) manual page.
 #
 # This file belongs to the "initscripts" package.
 
 # delete files in /tmp during boot older than x days.
 # '0' means always, -1 or 'infinite' disables the feature
 TMPTIME=0
 
 # spawn sulogin during boot, continue normal boot if not used in 30 seconds
 SULOGIN=no
 
 # do not allow users to log in until the boot has completed
 DELAYLOGIN=no
 
 # assume that the BIOS clock is set to UTC time (recommended)
 UTC=yes
 
 <snip>
 

* CentOSで確認する方法 [#u34ccf55]
以下のファイル内のUTCの値を確認します。(CentOS6を使用)
 /etc/sysconfig/clock
以下、catコマンドで出力した結果です。
 [sakura@centos6 ~]$ cat /etc/sysconfig/clock
 # The time zone of the system is defined by the contents of /etc/localtime.
 # This file is only for evaluation by system-config-date, do not rely on its
 # contents elsewhere.
 ZONE="Asia/Tokyo"

デフォルトの場合、UTCの記述がありません。~
UTCを無効にする場合は以下の文字列を追記します。
 UTC="false"


以上、Ubuntu, CentOSでBIOSクロックがUTCかどうかを確認する方法でした。

#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS