Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>set century</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SET CENTURY
 Modify the date format to include or omit century digits
------------------------------------------------------------------------------
 Syntax

     SET CENTURY on | OFF | <xlToggle>

 Arguments

     ON allows input and display of the century digits for dates.

     OFF suppresses the input and display of the century digits for
     dates.

     <xlToggle> is a logical expression that must be enclosed in
     parentheses.  A value of true (.T.) is the same as ON, and a value of
     false (.F.) is the same as OFF.

 Description

     SET CENTURY modifies the current date format as set by SET DATE.  SET
     CENTURY ON changes the date format to contain four digits for the year.
     With the date format set to four digits for the year, date values
     display with a four-digit year, and dates of any century can be input.

     SET CENTURY OFF changes the date format to contain only two digits for
     the year.  With the date format set to only two digits for the year
     (CENTURY OFF), the century digits of dates are not displayed and cannot
     be input.

     Note that only the display and input format of dates is affected; date
     calculations maintain the century information regardless of the date
     format.

     CA-Clipper supports all dates in the range 01/01/0100 to 12/31/2999.

 Examples

     .  This example shows the results of a simple SET CENTURY
        command:

        SET CENTURY OFF
        ? DATE()                  // Result: 09/15/90
        SET CENTURY ON
        ? DATE()                  // Result: 09/15/1990

 Files   Library is CLIPPER.LIB.


See Also: CTOD() DATE() DTOC() SET DATE SET EPOCH

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson