119 time, 119time, Time – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 215: Motload commands

Advertising
background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

215

3.1.119 time

Name

time—displays the current date and time.

Synopsis

time [-d] [-s]

Parameters

-d Ps: Device Name (Default = /dev/rtc)

-s 0: Short Option (MMDDYYHHMMSS)

Example

The following example indicates a typical display when using the time command.

MOTLoad> time

FRI JUN 7 16:45:02.00 2002

For SBCs without a Real-Time Clock device, the PowerPC time base can be displayed

MOTLoad> time -d/dev/ppctb

FRI JUN 7 16:45:02.00 2002

Error Messages

timeGet(): open(<device>) failed, errno =

Unable to open RTC device.

timeGet(): ioctl(105) failed, errno = <value>

Unable to read time in RTC (short).

timeGet(): ioctl(106) failed, errno = <value>

Unable to read time in RTC (long).

Advertising