Files
harbour-core/contrib/hbnf/lastday.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

33 lines
676 B
Plaintext

/*
* Author....: Mike Schinkel
* CIS ID....: ?
*
* This is an original work by Mike Schinkel and is placed in the
* public domain.
*
* Modification history:
* ---------------------
*
* Rev 1.1 15 Aug 1991 23:02:32 GLENN
* Forest Belt proofread/edited/cleaned up doc
*
* Rev 1.0 14 Jun 1991 04:24:04 GLENN
* Initial revision.
*
*
*/
/* Librarian's note: The toolkit's original ft_LDay() function was
submitted by Jeff Bryant. Mike saw it and optimized it. Thanks
to you both for your great code!
*/
FUNCTION ft_LDay( dDate )
IF dDate == NIL
dDate := Date()
ENDIF
RETURN ( dDate += 45 - Day( dDate ) ) - Day( dDate )