Skip to main content.

2006-Apr-07

I have been using for years ... but should mention it here. hwclock(8)'s output is a little confusing. It always shows the timezone (like "PDT") and when you use the --utc switch it shows "localtime" and when you use the --localtime option it really shows UTC (but still with the local timezone. For example, the following two examples are correct:
sh-2.05b# date ; /usr/sbin/hwclock --localtime
Fri Apr  7 09:59:50 PDT 2006
Fri Apr  7 16:59:44 2006  -0.634076 seconds
sh-2.05b# date ; /usr/sbin/hwclock
Fri Apr  7 10:11:14 PDT 2006
Fri Apr  7 10:11:09 2006  -1.378832 seconds