Files
harbour-core/contrib/hbnf/cntryset.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

35 lines
819 B
Plaintext

/*
* Author....: David Husnian
* CIS ID....: ?
*
* This is an original work by David Husnian and is placed in the
* public domain.
*
* Modification history:
* ---------------------
*
* Rev 1.2 15 Aug 1991 23:03:12 GLENN
* Forest Belt proofread/edited/cleaned up doc
*
* Rev 1.1 14 Jun 1991 19:51:20 GLENN
* Minor edit to file header
*
* Rev 1.0 01 Apr 1991 01:00:58 GLENN
* Nanforum Toolkit
*
*/
FUNCTION ft_SetCentury( lNewSetState )
// Note that if CENTURY is ON then
// DToC() Will Return a String of Length
// 10, Otherwise it Will be of Length 8
LOCAL lOldSetState := ( Len( DToC( Date() ) ) == 10 )
IF HB_ISLOGICAL( lNewSetState ) // Did They Want it Set??
SET CENTURY ( lNewSetState ) // Yes, Set it
ENDIF
RETURN lOldSetState