OASIS Command Reference

time
date

Name

time - Display or set time and date for the OASIS real-time clock

Synopsis

time [hh mm ss YY MM DD]

date [hh mm ss YY MM DD]

Description

The time command displays the current time and date. It may also be used to set the time when called with optional time/date arguments.

Parameter
Comments
hh
2 digit hour (00-23)
mm
2 digit minute (00-59)
ss
2 digit second (00-59)
YY

2 digit year
year = 1900+YY, YY >= 70
year = 2000+YY, YY < 70

MM
2 digit month (00-12)
DD
2 digit day (00-31)

 

All data will be timestamped with the time according to this clock setting. Typically, it is set to GMT. OASIS calculates its local time using the symbol LOCAL_OFFSET, defined in custom.h. OASIS uses this local time to perform operations that require it, for example, syncing the drivers at midnight local time or masking hours of operation for ARGOS and specprr using the daymask.

 

Example

Display the current time:

time

Set the time and date to May 28, 2001 6:59:00 pm:

time 18 59 00 01 05 28