b763 [Solved] Why does `date` and `time` display different time ? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old April 13th, 2012, 08:11
sw2wolf sw2wolf is offline
Member
 
Join Date: Feb 2010
Location: China
Posts: 201
Thanks: 1
Thanked 1 Time in 1 Post
Default Why does `date` and `time` display different time ?

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!
__________________
e^(π.i) + 1 = 0

Last edited by DutchDaemon; April 13th, 2012 at 21:02.
Reply With Quote
  #2  
Old April 13th, 2012, 08:45
jalla's Avatar
jalla jalla is offline
Member
 
Join Date: Aug 2009
Location: Bergen, Norway
Posts: 334
Thanks: 11
Thanked 67 Times in 58 Posts
Default

Why do you think date(1) and time(1) are synonymous. Check the man-pages.
__________________
Practical latin
Amicule, deliciae, num is sum qui mentiar tibi?
But dear, could I ever lie to you?
Reply With Quote
  #3  
Old April 13th, 2012, 21:05
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,817
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

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.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---

Last edited by DutchDaemon; April 14th, 2012 at 04:33.
Reply With Quote
  #4  
Old April 14th, 2012, 01:54
sw2wolf sw2wolf is offline
Member
 
Join Date: Feb 2010
Location: China
Posts: 201
Thanks: 1
Thanked 1 Time in 1 Post
Default

Sorry! It is a stupid question.
__________________
e^(π.i) + 1 = 0

Last edited by DutchDaemon; April 14th, 2012 at 04:34. Reason: Proper capitalization: http://en.wikipedia.org/wiki/Capitalization
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Benq Scanner 5000 works from time to time omelnikov Peripheral Hardware 3 June 5th, 2011 19:45
[Solved] Setting date and time dioon General 4 September 23rd, 2010 17:51
a script to get date/time of file modification t4z3v4r3d Userland Programming & Scripting 2 March 9th, 2010 17:01
[Solved] Changing date without changing time. caesius General 6 February 8th, 2010 16:30
[Solved] Time in jail != main server time? osx-addict General 2 October 21st, 2009 08:05


All times are GMT +1. The time now is 23:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0