Previous Topic: SELECT Command-Specify IdentifiersNext Topic: TABulate Command-Produce Tabular Reports


SHIFT Command-Hours Covered for a Report

The SHIFT command restricts the hours of the day covered by a report.

Like most secondary commands, the SHIFT command cannot be used twice for the same report, even if two different periods of time are specified.

The following provides an incorrect use of SHIFT commands in a command stream and the corrected command stream:

This command has the following syntax:

SHIFT start-time end-time
start-time

Specifies the earliest time to include in the report, in hh:mm:ss format, where hh is hours, mm is minutes, and ss is seconds. You can use periods instead of colons to separate the hours, minutes, and seconds.

end-time

Specifies the latest time to include in the report, in the same format as start-time.

Examples: SHIFT Command

To graph only the activity that occurs between 8:00 a.m. and 5:00 p.m., enter the following:

GRAF variable
  SHIFT 08:00:00 17:00:00
END
RUN

Shifts can cross midnight. For example, to write a tabular report that covers from 11:00 p.m. to 7:00 a.m., use the following commands:

TAB variable
  SHIFT 23:00:00 07:00:00
END
RUN