Tatsuya's profileTouchPhotosBlogLists Tools Help

Blog


    计算两个日期的距离

         要计算这两个日期间隔了多少天、多少小时、多少秒钟。想要通过个人的按部就班数出來,工作量大概是巨大得无法想像,除了钻牛角尖的傻子,也只有毅力坚韧之辈才能达成这个目标。
     
         还好这世界上有一种叫计算机新奇事物,它虽然很笨,只会1+1,但是它胜在速度快。
        
         恩,我用datediff函数算一下,2004-4-1 - 2009-10-10  ,这两个日期有多少间隔呢?看客稍后。
     
         大概是5年193天      (不多不多)
         又是2018天           (这个。。。对不对哦)
         也是48432小时       (嘠西多啊!!)
         还是2905920分钟    (。。。算错了吧?)
         竟是174355200秒钟 (额==;好吓人的数字)
     
         不算不知道,一算吓一跳。恩,大家都一起纪念各自逝去的这174355200秒吧。阿门!

    Comments (2)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Caie Caiwrote:
    收获。。汗。。
    5 days ago
    Caie Caiwrote:
    能告诉我这个函数怎么用吗,真想看到这个日志的同时学到点儿、收货点儿。
    5 days ago

    Trackbacks

    The trackback URL for this entry is:
    http://lovelulu4ever.spaces.live.com/blog/cns!C719152D1514E05F!5127.trak
    Weblogs that reference this entry
    • None