ubuntu设置时区为美国中部时间西六区
查看当前ubuntu系统时区
date -R Fri, Dec :: +
显示的是东八区时间及北京时间
然后输入tzselect 按照提示修改对应时区 本例子修改为美国中部时间 西六区
~$ tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
) Africa
) Americas
) Antarctica
) Arctic Ocean
) Asia
) Atlantic Ocean
) Australia
) Europe
) Indian Ocean
) Pacific Ocean
) coord - I want to use geographical coordinates.
) TZ - I want to specify the time zone using the Posix TZ format.
#?
Please select a country whose clocks agree with yours.
) Anguilla ) Haiti
) Antigua & Barbuda ) Honduras
) Argentina ) Jamaica
) Aruba ) Martinique
) Bahamas ) Mexico
) Barbados ) Montserrat
) Belize ) Nicaragua
) Bolivia ) Panama
) Brazil ) Paraguay
) Canada ) Peru
) Caribbean Netherlands ) Puerto Rico
) Cayman Islands ) St Barthelemy
) Chile ) St Kitts & Nevis
) Colombia ) St Lucia
) Costa Rica ) St Maarten (Dutch part)
) Cuba ) St Martin (French part)
) Curacao ) St Pierre & Miquelon
) Dominica ) St Vincent
) Dominican Republic ) Suriname
) Ecuador ) Trinidad & Tobago
) El Salvador ) Turks & Caicos Is
) French Guiana ) United States
) Greenland ) Uruguay
) Grenada ) Venezuela
) Guadeloupe ) Virgin Islands (UK)
) Guatemala ) Virgin Islands (US)
) Guyana
#?
Please select one of the following time zone regions.
) Newfoundland Time, including SE Labrador
) Atlantic Time - Nova Scotia (peninsula), PEI
) Atlantic Time - Nova Scotia (Cape Breton)
) Atlantic Time - New Brunswick
) Atlantic Time - Labrador - most locations
) Atlantic Standard Time - Quebec - Lower North Shore
) Eastern Time - Ontario & Quebec - most locations
) Eastern Time - Ontario & Quebec - places that did not observe DST -
) Eastern Time - Thunder Bay, Ontario
) Eastern Time - east Nunavut - most locations
) Eastern Time - Pangnirtung, Nunavut
) Central Time - Resolute, Nunavut
) Eastern Standard Time - Atikokan, Ontario and Southampton I, Nunavut
) Central Time - central Nunavut
) Central Time - Manitoba & west Ontario
) Central Time - Rainy River & Fort Frances, Ontario
) Central Standard Time - Saskatchewan - most locations
) Central Standard Time - Saskatchewan - midwest
) Mountain Time - Alberta, east British Columbia & west Saskatchewan
) Mountain Time - west Nunavut
) Mountain Time - central Northwest Territories
) Mountain Time - west Northwest Territories
) Mountain Standard Time - Creston, British Columbia
) Mountain Standard Time - Dawson Creek & Fort Saint John, British Columbia
) Mountain Standard Time - Fort Nelson, British Columbia
) Pacific Time - west British Columbia
) Pacific Time - south Yukon
) Pacific Time - north Yukon
#? The following information has been given: Canada
Central Standard Time - Saskatchewan - most locations Therefore TZ='America/Regina' will be used.
Local time is now: Fri Dec :: CST .
Universal Time is now: Fri Dec :: UTC .
Is the above information OK?
) Yes
) No
#? You can make this change permanent for yourself by appending the line
TZ='America/Regina'; export TZ
to the file '.profile' in your home directory; then log out and log in again. Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
America/Regina
mag-sit@mag-sit:~$ sudo cp /usr/share/zoneinfo/America/Regina /etc/localtime
[sudo] password for mag-sit:
mag-sit@mag-sit:~$ date
Fri Dec :: CST
mag-sit@mag-sit:~$ date -R
Fri, Dec :: -
ubuntu设置时区为美国中部时间西六区的更多相关文章
- CentOS 7 设置时区、日期和时间
CentOS 7 设置时区.日期和时间 changhr2013关注 2019.04.19 01:33:09字数 307阅读 139 在 CentOS 7 中,引入了一个叫 timedatectl 的设 ...
- linux设置时区和自动同步时间
1.设置时区 编辑 /etc/sysconfig/clock 修改 ZONE="Asia/Shanghai" 然后 cp /usr/share/zoneinfo/Asia/Sh ...
- [Linux]Ubuntu设置时区和更新时间
Ubuntu 下执行 date -R 查看现在时区 执行 tzselect查看时区,注意这个命令只能查询不能真正的修改时区 执行下面命令,复制文件到 /etc/可修改时区 sudo cp /usr/s ...
- 时区 : America/Mexico_City 中文:美国中部时间(墨西哥城) 的夏令时
方法: (参数为: TimeZone timeZone = TimeZone.getTimeZone("America/Mexico_City"); private static ...
- 美国cst时间和夏令时
美国6 PM CST相当于北京时间几点? 换算北京时间是:8:00,上午8点,日期是第二天.(换算公式:18点+14小时=第二天8点) 6 PM CST:6:00 PM Central Standar ...
- ubuntu server设置时区和更新时间
ubuntu server设置时区和更新时间 今天测试时,发现时间不对,查了一下时区: data -R 结果时区是:+0000 我需要的是东八区,这儿显示不是,所以需要设置一个时区 一.运行 ...
- ubuntu设置系统时间与网络时间同步
ubuntu设置系统时间与网络时间同步 Linux的时间分为System Clock(系统时间)和Real Time Clock (硬件时间,简称RTC). 系统时间:指当前Linux Ker ...
- centos7 设置时区和时间
1.设置时区(同步时间前先设置) timedatectl set-timezone Asia/Shanghai 2.安装组件 yum -y install ntp systemctl enable n ...
- Linux 同步时间 设置时区
简化版 同步时间 #直接用域名同步中国上海时间 ntpdate -u ntp.api.bz # hwclock --hctosys 或者 # clock --hctosys hc代表硬件时间,sys代 ...
随机推荐
- iosselect:一个js picker项目,在H5中实现IOS的select下拉框效果
具体文档和demo可以访问github:https://github.com/zhoushengmufc/iosselect 移动端浏览器对于select的展示样式是不一致的,ios下是类似原生的pi ...
- SAP自定义权限对象
SAP系统自带了很多的权限对象,每一个运行画面都有非常多的权限用到.不过标准的权限对象并不一定适合于用在客户自己开发的程序里面,所以每个ABAPer都应该会自己开发一套权限对象,并引用在程序代码里面. ...
- 编译器开发系列--Ocelot语言7.中间代码
Ocelot的中间代码是仿照国外编译器相关图书Modern Compiler Implementation 中所使用的名为Tree 的中间代码设计的.顾名思义,Tree 是一种树形结构,其特征是简单, ...
- maven打包插件:appassembler
1.打包成bat 打包命令:mvn clean package appassembler:assemble <plugin> <groupId>org.codehaus.moj ...
- hbase集群安装与部署
1.相关环境 centos7 hadoop2.6.5 zookeeper3.4.9 jdk1.8 hbase1.2.4 本篇文章仅涉及hbase集群的搭建,关于hadoop与zookeeper的相关部 ...
- requests源码阅读学习笔记
0:此文并不想拆requests的功能,目的仅仅只是让自己以后写的代码更pythonic.可能会涉及到一部分requests的功能模块,但全看心情. 1.另一种类的初始化方式 class Reques ...
- Windows 7 上安装Visual Studio 2015 失败解决方案
安装之前先要看看自己的系统支不支持,具体的可以看:https://www.visualstudio.com/en-us/visual-studio-2015-system-requirements-v ...
- ENode框架Conference案例分析系列之 - 文章索引
ENode框架Conference案例分析系列之 - 业务简介 ENode框架Conference案例分析系列之 - 上下文划分和领域建模 ENode框架Conference案例分析系列之 - 架构设 ...
- 计算机程序的思维逻辑 (41) - 剖析HashSet
上节介绍了HashMap,提到了Set接口,Map接口的两个方法keySet和entrySet返回的都是Set,本节,我们来看Set接口的一个重要实现类HashSet. 与HashMap类似,字面上看 ...
- 1、.NET平台概述
本学习主要参考Andrew Troelsen的C#与.NET4高级程序设计,这小节主要述说以下几个东西: 宏观上讨论一下.net相关的主题:程序集.CIL(Common Interme ...