HOUR
 
Syntax


#include <RTC.bas>                             ' source in /Program Files/Coridium/BASIClib

#include <RTC17.bas>             ' for the PROplus and SuperPRO LPC175x

FUNCTION HOUR(value)   'When called with -1 the current value for HOUR is returned.

Description


Function setting or returning the hour.

When called with a value >= 0, the HOUR is changed.
Range 0 to 23. 

Example

#include <RTC.bas>
...
HOUR (13)
 
PRINT "This is ";  MONTH(0); "/"; DAY(0); "/"; YEAR(0), "at"; HOUR(-1); ":"; MINUTE(-1); ":"; SECOND(-1)
The output would look like:
This is 4/14/2006 at 13:15:30