1 Star 0 Fork 4.9K

fish / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ntpdate.md 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

ntpdate

Command Function

This command is used to synchronize system time from the server.

Syntax

ntpdate [SERVER_IP1] [SERVER_IP2]...

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

SERVER_IP

Indicates the IP address of the NTP server.

N/A

Usage

Run the **ntpdate **[SERVER_IP1] [SERVER_IP2]... command. ntpdate obtains and displays the time of the first server with a valid IP address.

Example

To update the system time, run ntpdate 192.168.1.3.

Output

OHOS # ntpdate 192.168.1.3
time server 192.168.1.3: Mon Jun 13 09:24:25 2016

The time zone of the board is different from that of the server. Therefore, the displayed time may be several hours different from the obtained server time.

1
https://gitee.com/fish_neil/docs.git
git@gitee.com:fish_neil/docs.git
fish_neil
docs
docs
master

搜索帮助