[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FT_SETTIME()
Set the DOS system time
------------------------------------------------------------------------------
Syntax
FT_SETTIME( <cTime> ) -> <lResult>
Arguments
<cTime> is a string in the form <hh:mm:ss> that you want to set
the current DOS system time to.
Use 24-hour time. It is up to you to send in a valid time. If
DOS doesn't think it is valid, it won't reset the time anyway.
Returns
<lResult> is simply the result of FT_INT86(), passed back
to your program.
Description
FT_SETTIME() uses NANFOR.LIB's FT_INT86() function to invoke
the DOS Set Time service (Interrupt 33, service 45).
Examples
The following program takes a time string from the command line and sets
the DOS system time:
FUNCTION main( cTime )
cTime := iif( cTime == nil, time(), cTime )
QOut( "Setting time to: " + cTime + "... " )
FT_SETTIME( cTime )
Qout( "Time is now: " + time() )
RETURN ( nil )
Source: SETTIME.PRG
Author: Glenn Scott
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson