Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System time - to hundredth of a second?

Status
Not open for further replies.
Feb 14, 2002
88
JP
As the question says. I need to write a script in either kornshell or perl that prints a timestampe WITHIN the output (not the timestamp of the file itself) that outputs to the hundredth of a second.

So far, the best I've got is:
time=`date +%H%M%S` which doesn't get the job done unfortunately.

When I run a search on google for timestamps, time, date formats and stuff, there's really nothing that addresses this specific question.

Regards
Paul
 
Someone found this for me at the office. Here it is if anyone wants it.

/usr/sbin/ntpq -c readvar | grep clock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top