On Apr 26, 2005, at 10:16 AM, James Melin wrote:
Is there a way to have the date function return the time down to the 100th of a second as a string of [hour][min][sec][hundredths] eg: 17594588 ?
Perl's Time::Hires module certainly does this. Date doesn't, but the c library function gettimeofday() gives you down to microseconds (in theory). It'd be easy to write something that grabbed the timeval structure, and did the conversion of seconds-since-the-epoch into a sane format (I think you can use ctime() or one of its friends to do that, because the tv_sec member of the struct timeval that gettimeofday() returns is a time_t, which is what all the ctime() functions operate on, and tv_usec / 10000 should be the hundredths).
Adam
---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
