1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why does `date` and `time` display different time ?

Discussion in 'General' started by sw2wolf, Apr 13, 2012.

  1. sw2wolf

    sw2wolf Member

    Messages:
    245
    Thanks Received:
    1
    Code:
    >uname -a
    FreeBSD mybsd.zsoft.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012 
    root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
    
    >date
    2012年 4月13日 星期五 15时06分54秒 CST
    
    >time
    4.193u 1.166s 7:57:49.19 0.0%   779+3808k 998+130io 1308pf+0w
    


    Sincerely!
     
  2. jalla

    jalla Member

    Messages:
    376
    Thanks Received:
    75
  3. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,766
    Thanks Received:
    1,871
    Under which circumstances is that the output of the time command anyway? By itself it should print nothing more than:

    Code:
      0m0.00s user     0m0.00s system


    when it's the shell builtin, or nothing at all when it's /usr/bin/time.
     
  4. sw2wolf

    sw2wolf Member

    Messages:
    245
    Thanks Received:
    1
    Sorry! It is a stupid question.