09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GetTime Reads the current time as a numeric value<br />

Example<br />

GetTime is used to read a specified component of the current system time as a numeric<br />

value.<br />

GetTime can be used to :<br />

- have the program perform an action at a certain time,<br />

- perform certain activities on a weekday,<br />

- abstain from performing certain activities on the weekend,<br />

- respond to errors differently depending on the time of day.<br />

hour := GetTime(\Hour);<br />

The current hour is stored in the variable hour.<br />

Return value Data type: num<br />

Argument<br />

One of the four time components specified below.<br />

GetTime ( [\WDay] | [\Hour] | [\Min] | [\Sec] )<br />

[\WDay] Data type: switch<br />

Return the current weekday.<br />

Range: 1 to 7 (Monday to Sunday).<br />

[\Hour] Data type: switch<br />

Return the current hour.<br />

Range: 0 to 23.<br />

[\Min] Data type: switch<br />

Return the current minute.<br />

Range: 0 to 59.<br />

[\Sec] Data type: switch<br />

Return the current second.<br />

Range: 0 to 59.<br />

<strong>RAPID</strong> Reference Manual 9-GetTime-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!