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 on the system?
Thanks.
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 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.