set time using date utility

Following is the extract from Qnx manual :
Adjust the system time to 4:34 pm local time without
changing the date:
date 1634

but when i tried to set the time using the date utility it prints message
“invalid year”

how to set the time using the “date” utility ?

thanks in advance

sameer

You need a newer version of the date utility. It sounds like an old
leftover Y2K issue. In the meantime if you enter all digits I think that
the old version will work. I.E. date YYYYMMDDHHMM[.SS]


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“QnxNews” <situelectro@vsnl.com> wrote in message
news:9u4u3p$mjf$1@inn.qnx.com

Following is the extract from Qnx manual :
Adjust the system time to 4:34 pm local time without
changing the date:
date 1634

but when i tried to set the time using the date utility it prints message
“invalid year”

how to set the time using the “date” utility ?

thanks in advance

sameer

“QnxNews” <situelectro@vsnl.com> wrote in message
news:9u4u3p$mjf$1@inn.qnx.com

Following is the extract from Qnx manual :
Adjust the system time to 4:34 pm local time without
changing the date:
date 1634

but when i tried to set the time using the date utility it prints message
“invalid year”

That seems strange, as I can do a “date 1634” - what version of QNX4 are
your using? Are you root when you do this?

-Adam

“QnxNews” <situelectro@vsnl.com> wrote in message
news:a2bgt9$1d2$1@inn.qnx.com

Operating System Tech Support wrote in message
9u5ls1$qnp$> 1@nntp.qnx.com> >…
“QnxNews” <> situelectro@vsnl.com> > wrote in message
news:9u4u3p$mjf$> 1@inn.qnx.com> …
Following is the extract from Qnx manual :
Adjust the system time to 4:34 pm local time without
changing the date:
date 1634

but when i tried to set the time using the date utility it prints
message
“invalid year”

That seems strange, as I can do a “date 1634” - what version of QNX4 are
your using? Are you root when you do this?

-Adam



i am using QNX 4.25 version and i am login as root

Make sure you have the latest version, patch E.

Operating System Tech Support wrote in message
<9u5ls1$qnp$1@nntp.qnx.com>…

“QnxNews” <> situelectro@vsnl.com> > wrote in message
news:9u4u3p$mjf$> 1@inn.qnx.com> …
Following is the extract from Qnx manual :
Adjust the system time to 4:34 pm local time without
changing the date:
date 1634

but when i tried to set the time using the date utility it prints message
“invalid year”

That seems strange, as I can do a “date 1634” - what version of QNX4 are
your using? Are you root when you do this?

-Adam

i am using QNX 4.25 version and i am login as root

You need a new version of date - patch D or later.

Richard

QnxNews wrote:

Operating System Tech Support wrote in message
9u5ls1$qnp$> 1@nntp.qnx.com> >…
“QnxNews” <> situelectro@vsnl.com> > wrote in message
news:9u4u3p$mjf$> 1@inn.qnx.com> …
Following is the extract from Qnx manual :
Adjust the system time to 4:34 pm local time without
changing the date:
date 1634

but when i tried to set the time using the date utility it prints message
“invalid year”

That seems strange, as I can do a “date 1634” - what version of QNX4 are
your using? Are you root when you do this?

-Adam



i am using QNX 4.25 version and i am login as root