date uses gettimeofday?
When I do: date system call on freeBSD, does it internally use gettimeofday ?
Another que: how do I know where the code of "date" command sitting开发者_StackOverflow社区 on the system?
Thanks.
You can find the source for date
in the online SVN repository browser.
The date
command calls time()
to get the current time.
精彩评论