in reply to Re^8: Date Time problem.
in thread Date Time problem.
That way when getting a range of dates from log, you just have to calculate a string for start and one for end then use string compares to extract the sub-range of log messages. Perl is fantastic at string compare.use format like: 2008/01/22 07:00:05 Thu instead of: Thu Jan 22 07:00:05 2008
I would add that if the OP is dealing with multiple time zones, he/she will quickly get used to looking at the GMT time. I mean if you are tracking down some problem between NY city and San Francisco, it is easier when both logs have the same idea of "time".
It is not that far fetched and actually a good idea to have a clock in your office/cube that is on GMT.
Update: I hope that its clear that I meant using GMT solves this 23 hours vs 24 or 25 hours in a local "day" problem.
|
|---|