Operating System - HP-UX
1833760 Members
2177 Online
110063 Solutions
New Discussion

adjust clock time on rp2470

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

adjust clock time on rp2470

Hi,
UX 11.00; rp2470.
I have issued cmd: date -u 102709032003
I wanted the time to say 09:03 when issue date cmd. But, it is has given me:
# date
Mon Oct 27 20:05:01 EDT 2003
#
Have I done something incredibly stupid? Hope someone can help me out here..
thanks
Maria.
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: adjust clock time on rp2470

Hi Maria,

Don't use 'date -u xxxxx'

# date 102709162003

The -u sets it to UTC time which is another name for GMT. You might want to check that your /usr/lib/tztab file is correct. You may have a coordination problem, not an actual date problem. Here is a snippet from my /usr/lib/tztab file.

# Australian Central Standard Time, Australian Central Daylight Time
# (South Australia)
#
# This entry has been changed to allow for a later ending of
# daylight savings time from 1995 onwards in South Australia.
# It now ends in the last week of March.
#
CST-9:30CDT
0 3 25-31 10 1971-2038 0 CDT-10:30
0 1 27 2 1972 0-6 CST-9:30
0 1 1-7 3 1973-1994 0 CST-9:30
0 2 25-31 3 1995-2038 0 CST-9:30

# Australian Eastern Standard Time, Australian Eastern Daylight Time
#
# This entry has been changed to allow for a later ending of
# daylight savings time from 1996 onwards.
# It now ends in the last week of March.
#
# This entry has been changed to allow an earlier start of
# daylight savings time for Sydney Olympics 2000.
#
EST-10EDT
0 3 25-31 10 1971-1999 0 EDT-11
0 3 27 8 2000 0-6 EDT-11
0 3 25-31 10 2001-2038 0 EDT-11
0 1 27 2 1972 0-6 EST-10
0 1 1-7 3 1973-1985 0 EST-10
0 1 15-21 3 1986 0 EST-10
0 1 1-7 3 1987-1995 0 EST-10
0 2 25-31 3 1996-2038 0 EST-10

# New Zealand Standard Time, New Zealand Daylight Time

HTH
Michael
Anyone for a Mutiny ?
Peter Gillis
Super Advisor

Re: adjust clock time on rp2470

Hello there,
Looks like I was a bit hasty... I have fixed it. Issuing the date command without the -u option allowed time to be set correctly, not in Coordinated Universal Time (UTC), checked the man pages properly.
Regards,
Maria
Peter Gillis
Super Advisor

Re: adjust clock time on rp2470

Thanks for the info Michael. Checked tztab file all looks ok.
see ya
Maria.