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:
    237
    Likes Received:
    0
    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日 星期五 [color="red"]15时06分54秒[/color] CST
    
    >time
    4.193u 1.166s [color="Red"]7:57:49.19[/color] 0.0%   779+3808k 998+130io 1308pf+0w
    
    Sincerely!
     
  2. jalla

    jalla New Member

    Messages:
    374
    Likes Received:
    0
  3. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,664
    Likes Received:
    24
    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:
    237
    Likes Received:
    0
    Sorry! It is a stupid question.