. DirectXtras Home

DirectCommunication Xtra
DirectConnection Xtra
DirectControl Xtra
DirectEmail Xtra
DirectFTP Xtra
DirectImage Xtra
DirectInteraction Xtra
DirectOS Xtra
License Agreement
Licensing Fees
Order Form
DirectSMS Xtra
DirectSound Xtra
DirectTransition Xtra
DirectTransition3D Xtra Set I
DirectTransition3D Xtra Set II
DirectTransition3D Xtra Set III
DirectTTS Xtra
DirectXport Xtra


Special Discounted Bundles

The Gallery
How To Order
Order Form
Check for Upgrades

Sign in
Change Your Profile

Contact Us

Xtra Power for Director & Authorware

DirectOS Xtra
 Directing Windows and MacOS. The OS at your fingertips!

Authorware 4.x Compatible Authorware 5.x CompatibleAuthorware 6.x CompatibleAuthorware 7.x CompatibleDirector 5.x Compatible Director 6.x CompatibleDirector 7.x Compatible Director 8.x CompatibleDirector MX Compatible     MacOS 8.x and 9.x CompatibleWindows Compatible   

dosSetSystemTime(string NewTime)

Sets the system clock to the time specified by NewTime

Parameter :

NewTime : A string specifying the new time to set the system clock to. The format is "hour:minute:second" on a 24 hour clock. For example, 4:34:22 PM would correspond to "16:34:22". Do not insert any spaces or other unneeded characters into this string. 

Return Value : An integer indicating whether the method succeeded or failed. A value of 1 indicates that the method succeeded. A value of 0 indicates the method failed in which case dosGetLastError() should be called to determine the cause of the error.

Possible Returned Error Codes via dosGetLastError() :
10001 : Invalid format for parameter 1. 
10010 : Invalid value for hour. 
10011 : Invalid value for minute. 
10012 : Invalid value for second. 

Remarks :

This function is not supported on MacOS X.

DirectXtras Inc.
P.O Box 2645, Menlo Park, CA, 94026, U.S.A
Voice: +1-415-5058249, Fax: +1-801-8585841
Toll Free: 1-800-4453093
E-mail General Information: info@directxtras.com
E-mail Technical Support: support@directxtras.com

Copyright 1996-2004 DirectXtras Inc. All Rights Reserved.
WebMaster: tamar@directxtras.com
Last Updated: 12/20/2002 5:18:20 AM.