Files
harbour-core/harbour/tests/dttest.prg
Viktor Szakats 175984ec71 2012-11-01 17:33 UTC+0100 Viktor Szakats (harbour syenar.net)
* contrib/gtwvg/tests/demowvg.prg
  * contrib/gtwvg/tests/wvtcls.prg
  * contrib/hbct/tests/datetime.prg
  * contrib/hbmisc/hbedit.prg
  * contrib/hbnf/clrsel.prg
  * contrib/hbnf/doc/en/prtesc.txt
  * contrib/hbnf/doc/en/scregion.txt
  * contrib/hbnf/doc/en/video1.txt
  * contrib/hbnf/tests/metaph.prg
  * contrib/xhb/trpc.prg
  * src/common/hbver.c
  * src/rtl/gtchrmap.c
  * tests/dttest.prg
  * tests/mousetst.prg
  * tests/sbartest.prg
    * deleted unnecessary leading zeros from decimal numbers
    * minor formatting and cleanups in docs
    * use ANSI dates
2012-11-01 16:35:14 +00:00

49 lines
1.8 KiB
Plaintext

/*
* $Id$
*/
/*
* Harbour Project source code:
*
* Copyright 2010 Carlos Bacco
* www - http://harbour-project.org
*
*/
#include "simpleio.ch"
PROCEDURE Main()
? hb_DateTime( 1974 )
? " ValType( hb_DateTime() ) =>", ValType( hb_DateTime() )
? " Year( hb_DateTime() ) =>", Year( hb_DateTime() )
? " Month( hb_DateTime() ) =>", Month( hb_DateTime() )
? " Day( hb_DateTime() ) =>", Day( hb_DateTime() )
?
? " ValType( hb_DateTime( 1974, 5, 31 ) ) =>", ValType( hb_DateTime( 1974, 5, 31 ) )
? " Year( hb_DateTime( 1974, 5, 31 ) ) =>", Year( hb_DateTime( 1974, 5, 31 ) )
? " Month( hb_DateTime( 1974, 5, 31 ) ) =>", Month( hb_DateTime( 1974, 5, 31 ) )
? " Day( hb_DateTime( 1974, 5, 31 ) ) =>", Day( hb_DateTime( 1974, 5, 31 ) )
? " DToC( hb_DateTime( 1974, 5, 31 ) ) =>", DToC( hb_DateTime( 1974, 5, 31 ) )
?
? " ValType( hb_DateTime( 1974, 31, 5, NIL, NIL, NIL ) ) =>", ValType( hb_DateTime( 1974, 31, 5, NIL, NIL, NIL ) )
?
? " ValType( hb_DateTime( 2001, 10, 13, 18, 42, 16 ) ) =>", ValType( hb_DateTime( 2001, 10, 13, 18, 42, 16 ) )
?
? " ValType( hb_DateTime( NIL, NIL, NIL, 10, 36, 5 ) ) =>", ValType( hb_DateTime( NIL, NIL, NIL, 10, 36, 5 ) )
? " hb_DateTime( NIL, NIL, NIL, 10, 36, 5 ) =>", hb_DateTime( NIL, NIL, NIL, 10, 36, 5 )
?
? " ValType( hb_DateTime( NIL, NIL, NIL, 10, 36, 5, 176 ) ) =>", ValType( hb_DateTime( NIL, NIL, NIL, 10, 36, 5, 176 ) )
? " hb_DateTime( NIL, NIL, NIL, 10, 36, 5, 176 ) =>", hb_DateTime( NIL, NIL, NIL, 10, 36, 5, 176 )
? " ValType( hb_DateTime( 0, 0, 0, 10, 36, 5, 176 ) ) =>", ValType( hb_DateTime( 0, 0, 0, 10, 36, 5, 176 ) )
? " hb_DateTime( 0, 0, 0, 10, 36, 5, 176 ) =>", hb_DateTime( 0, 0, 0, 10, 36, 5, 176 )
RETURN