Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)
Image of Operating System Concepts
Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
Image of Android Wireless Application Development

Convert Date TimeZone in Apache Server Log

Recently, I helped a user who was given the task of converting the dates in a Apache server log from GMT (Greenwich Mean Time) to PST (Pacific Standard Time). In theory all that is necessary is to extract the date/time string from each log entry line, subtract 7 or 8 hours depending on whether daylight savings time is in force or not, and rebuild the log entry line with the new date/time string. On first examination, this would seen to be an easy task which would be suitable for gawk given that it has support for mktime and strptime. However