Reference Manual - Table of Contents

Execution Control
Forms and Windows
Controls
Menus
System and Desktop
Graphic Drawing Commands

Animation
QuickTime Movies
Speech
Sound
File I/O
Printing
Serial Ports

Math Functions
String Functions
Date and Time
Memory Buffers
Error Handling
Console Text Window

Events

Direct Memory Access
Direct Mouse Access
Direct Keyboard Access
Code Resource Modules

A - Runtime Error Messages
B - Compiler Error Messages

Date and Time

 

Command Summary:
Delay ticks

Function Summary:
var$ = Date ( )
var$ = Time ( )
var = Timer ( )
var$ = Day ( date$ )

 

Delay ticks

This command delays execution for a designated amount of time.

var$ = Date()

This function returns a string representing the current date. The Date function returns a date in MM/DD/YYYY format that represents the current date. (M = Month, D = Day, Y = Year).

For example the fourth of July in 1997 would be returned as 07/04/1997.

 

var$ = Time()

This function returns a string representing the current time. The Date function returns a date in HH:MM:SS format that represents the current date. (H = Hours, M = Minutes, S = Seconds).

 

var = Timer()

This function returns a value representing how much time since midnight. This function returns a numeric value representing the number of ticks since midnight. A tick equals 1/60th of a second. There are 3600 ticks in a minute and 216,000 ticks in an hour.

 

var$= Day( date$ )

This function returns a string value representing the day of the week. This function returns a string representing the day of the week with the first letter capitalized. The resulting string will be equal to one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday,