承接国内外服务器租用托管、定制开发、网站代运营、网站seo优化托管接单、网站代更新,新老站点皆可!!咨询QQ:3787320601
当前位置:首页  >  网站建设  >  ubuntu怎么获取时间戳

ubuntu怎么获取时间戳

管理员 2023-04-12 09:36:30 网站建设 92 ℃ 0 评论 634字 收藏

ubuntu怎么获取时间戳

ubuntu怎样获得时间戳

ubuntu获得时间戳的方法:

1.打开终端命令行模式。

2.直接履行“date”命令进行获得。

#用法

date [OPTION]... [+FORMAT]

date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

#示例

[admin@localhost testing]$ date

Mon Mar 27 17 :50:39 PDT 2017

相关命令:

date指定格式显示时间。

[admin@localhost testing]$ date +%Y-%m-%d

2020-02⑵0

[admin@localhost testing]$ date +%Y:%m:%d

2020 :02:20

[admin@localhost testing]$

文章来源:丸子建站

文章标题:ubuntu怎么获取时间戳

https://www.wanzijz.com/view/8044.html

TAG: ubuntu 时间戳

相关文章

Related articles

X

截屏,微信识别二维码

微信号:weimawl

(点击微信号复制,添加好友)

打开微信