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

14 lines
266 B
Plaintext

#require "hbnf"
PROCEDURE Main( cDate )
Set( _SET_DATEFORMAT, "yyyy-mm-dd" )
cDate := iif( cDate == NIL, DToS( Date() ), cDate )
? "Setting date to: " + cDate + "... "
ft_SetDate( hb_SToD( cDate ) )
? "Today is now: " + DToC( Date() )
RETURN