in reply to Obtaining The Exact Time
Your question asks how to get the exact time, but I would be more worried about a guaranteed unique value.
Russ
Brainbench 'Most Valuable Professional' for Perl
P.S. Look at POSIX::strftime. I think
is much prettier to use thanmy $Now = strftime('%Y%m%d', localtime)
($sec, $min, ...) = (localtime())[0..5]; $Now = sprintf('%4d%2d%2d', $sec, $min...);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Obtaining The Exact Time
by sauoq (Abbot) on Oct 08, 2002 at 00:24 UTC |