C5_SET CENTURY

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.

     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



Advertisements

4 responses to “C5_SET CENTURY

  1. Pingback: C5 UI Global Settings | Viva Clipper !

  2. Pingback: C5 User Interface | Viva Clipper !

  3. Pingback: C5 Commands | Viva Clipper !

  4. Pingback: C5 Commands | Viva Clipper !

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.