How to set time?

Is there a GUI to set the time, like when doing the initial install?
My time has somehow gotten messed up. Thanks!

Try this

use date

date - display or set the date and time (POSIX)

date [-uv] [-s seconds] [+]
[-uv] [-S seconds]
[-t]
Options:
-S seconds Attempt to initiate a slow clock adjustment if this can
be accomplished within the specified number of seconds
(maximum) without exceeding double the clock speed or
going below half the normal clock speed for the duration
of the adjustment.
-s seconds Display the string equivalent of this date, supplied as
seconds since the start of the epoch. This value is used
instead of the system time value for the number of seconds.
-t Display the time as a simple long integer.
-u Perform operations using Coordinated Universal Time (UTC)
instead of local time.
-v Be verbose. If multiple -v options are specified along
with -S, date will not terminate until the slow adjustment
period has elapsed.

Where:
+ is a format string containing text and field descriptors
which are in the form %. e.g. “+%I O’Clock %p”

If any operands other than a +format are specified, date will asssume
the operands are a that you want to set the Neutrino date and time
to. Only root will be allowed to change the date.

The following formats may be used for a when setting the date/time:

[[[[CC]YY]MM]DD]hhmm[.SS] (touch utility format)
MMDDhhmm[YY] (System V format (*) )
day [month [year [hour [min [sec]]]]]] [am|pm] (QNX 2.15 format)

(*) Years >99 (1999) cannot be specified using the Sys V format (where
year follows the date/time), because of a parsing conflict with
the YYMMDDhhmm form of the POSIX touch utility format. If the last
pair of digits is <59 it may refer to minutes, not years.

Date will set only the software QNX clock. To transfer the software
time to the battery backed up hardware clock and vice-versa, use the
rtc utility.

Thanks
Charles


Previously, Art Hays wrote in qdn.public.qnxrtp.installation:

Is there a GUI to set the time, like when doing the initial install?
My time has somehow gotten messed up. Thanks!

Or just get into the BIOS/CMOS setup and set the time there. :slight_smile:
Why can’t we just have DATE and TIME commandline commands that
are frigging SIMPLE and EASY to use like, oh, say DOS? :slight_smile: Since the
PC/AT in 1984 those DOS commands have set both the software and CMOS
clocks.

Charles Lawrence wrote:

Try this

use date

date - display or set the date and time (POSIX)

date [-uv] [-s seconds] [+]
[-uv] [-S seconds] <date
[-t]
Options:
-S seconds Attempt to initiate a slow clock adjustment if this can
be accomplished within the specified number of seconds
(maximum) without exceeding double the clock speed or
going below half the normal clock speed for the duration
of the adjustment.
-s seconds Display the string equivalent of this date, supplied as
seconds since the start of the epoch. This value is used
instead of the system time value for the number of seconds.
-t Display the time as a simple long integer.
-u Perform operations using Coordinated Universal Time (UTC)
instead of local time.
-v Be verbose. If multiple -v options are specified along
with -S, date will not terminate until the slow adjustment
period has elapsed.

Where:
+ is a format string containing text and field descriptors
which are in the form %. e.g. “+%I O’Clock %p”

If any operands other than a +format are specified, date will asssume
the operands are a that you want to set the Neutrino date and time
to. Only root will be allowed to change the date.

The following formats may be used for a when setting the date/time:

[[[[CC]YY]MM]DD]hhmm[.SS] (touch utility format)
MMDDhhmm[YY] (System V format (*) )
day [month [year [hour [min [sec]]]]]] [am|pm] (QNX 2.15 format)

(*) Years >99 (1999) cannot be specified using the Sys V format (where
year follows the date/time), because of a parsing conflict with
the YYMMDDhhmm form of the POSIX touch utility format. If the last
pair of digits is <59 it may refer to minutes, not years.

Date will set only the software QNX clock. To transfer the software
time to the battery backed up hardware clock and vice-versa, use the
rtc utility.

Thanks
Charles

Previously, Art Hays wrote in qdn.public.qnxrtp.installation:
Is there a GUI to set the time, like when doing the initial install?
My time has somehow gotten messed up. Thanks!

Gregg E. <gregg1@valint.net> wrote:

Or just get into the BIOS/CMOS setup and set the time there. > :slight_smile:

Good idea. Just shut the assembly line down and jigger the CMOS. Shouldn’t
cost more than a few million dollars worth of production.

Why can’t we just have DATE and TIME commandline commands that
are frigging SIMPLE and EASY to use like, oh, say DOS? > :slight_smile:

You can. Write them yourself. Some people actually use all those complicated
options, but you could write a shell script (it’s like a batch file, only it
can have a longer name, and it doesn’t need to have a .bat extension) to hide
all the details and invoke the rtc utility automatically.

Since the PC/AT in 1984 those DOS commands have set both the software and
CMOS clocks.

Why stop there? There is lots of other real mode code in the motherboard
ROMS we could use. We wouldn’t have to write any drivers anymore if we just
stayed in real mode all the time and used BIOS calls for everything.