时区日期? [英] Timezone in date?

查看:192
本文介绍了时区日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux中的 date 命令从哪里获取 timezone 信息?
我的系统中看不到 / etc / localtime 文件和 / usr / share / zoneinfo 目录。仍然执行 date 命令时,我得到以下输出

From where does the date command in Linux get the timezone information? I cannot see /etc/localtime file and /usr/share/zoneinfo direcory in my system. Still when i execute the date command i get the following output


Thu Dec 9 16:28:18 UTC 2010

Thu Dec 9 16:28:18 UTC 2010

请告诉我从哪里获取时区信息?

Kindly tell me from where does the command get the timezone information?

感谢
LinuxPenseur

Thanks, LinuxPenseur

推荐答案

http://www.wikihow.com/Change-the-Timezone-in-Linux


在手机和其他运行Linux的小型设备上,时区
的存储方式不同。它是以/ etc / tz的形式写成的,例如描述的是
,例如在 [4] 。手动编辑此文件或使用
echo(例如,echo GMT0BST> / etc / TZ设置英国的
的时区)。

On mobile phones and other small devices that run Linux, the time zone is stored differently. It is written in /etc/TZ, in the format that is described, for instance, in [4] . Edit this file manually or use echo (for instance, echo GMT0BST > /etc/TZ to set the the timezone of the United Kingdom).

http://www.radisys。 com / files / support_downloads / 03245-02_MPCMM0001_MPCMM0002_CMM_Software_TPS.pdf


CMM确定文件$ b中维护的本地时区的偏移量$ b / etc / cmm / TZ并自动更新时间。

The CMM determines the offset to local timezone maintained in file /etc/cmm/TZ and automatically updates the time.

这篇关于时区日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆