Introduction Date/Time Functions

 Introduction

     This section contains functions that make many date computations easier
     to perform.  Date-type values have been a feature of the xBASE language
     standard, and is preserved in Clipper.  In spite of this, it is
     always necessary to develop UDFs to execute certain technical financial
     computations.  Clipper Tools offers an alternative that not only
     spares you the work of writing a UDF, but also provides implementation
     in Assembler to guarantee fast execution.

     This chapter also contains clock time functions.  These include time
     changes, time span computations, time control of loops, and memory-
     resident clock display.

     Please note that valid date tests are already carried out in Clipper.
     Clipper internal date tests cannot be canceled, so it is impossible
     to implement an individual UDF for error handling , if there is an
     invalid date.

     Clipper always replaces an invalid date with a null date.  These
     internal tests are carried out by keyboard input, as well as by CTOD()
     allocation.  For this reason, there are no examples with invalid dates
     in the date function descriptions.  Rather, the result of a function
     with a null date is shown.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.