在命令行中输入以下命令
date –date “$(echo 1234567890 – $(date ‘+%s’) | bc) seconds”
得到的结果是
2009年 02月 14日 星期六 07:31:30 CST
也就是在这一天的这一个时刻,UNIX 的时间戳将会走到 1234567890。
让我们欢庆这一时刻的到来吧:
一、在命令行中按下 date ‘+现在的系统时间戳是 %s’
二、在浏览器的地址栏里输入 javascript:alert(‘现在的系统时间戳是 ‘+(new Date().getTime()/1000).toFixed()), 更简单的话,把1234567890这个链接拖到地址栏。

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.