Files
harbour-core/contrib/hbnf/tests/setdate.prg
Przemysław Czerpak 96ca3fe470 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* Makefile
  * config/*
  * contrib/*
  * doc/*
  * extras/*
  * include/*
  * lib/*
  * package/*
  * src/*
  * tests/*
  * utils/*
    * removed empty lines left after removed '$' + 'Id' + '$' identifiers
2014-01-21 20:41:05 +01:00

13 lines
265 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