码迷,mamicode.com
首页 > 其他好文 > 详细

时间戳

时间:2017-04-07 23:04:07      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:北京   签名   数字   date   应用   time   logs   com   linux   

1、时间戳(timestamp),通常是一个字符序列,唯一地标识某一刻的时间。数字时间戳技术数字签名技术一种变种的应用。

2、时间戳是指格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总秒数。

php中获取时间戳的方法是:time();Date();
Linux中获取时间戳的方法是:date +%s
Linux中将时间戳转换为日期: date -d "@<timestamp>"

时间戳

标签:北京   签名   数字   date   应用   time   logs   com   linux   

原文地址:http://www.cnblogs.com/Liangbingbing/p/6680286.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!