Hi Przemek, Il 19/10/2009 22.12, [email protected] ha scritto:
Revision: 12730 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12730&view=rev Author: druzus Date: 2009-10-19 20:12:36 +0000 (Mon, 19 Oct 2009)Log Message: ----------- 2009-10-19 22:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/dateshb.c ! fixed HB_TTOD() and HB_DTOT() results - they were reverted by mistake + added support for optional second parameter in HB_DTOT() function with time as numeric value in second() like representation or as character string with HH:MM[:S[S][.f[f[f[f]]]]] [PM|AM] representation, i.e.: ? HB_DATETIME() ? HB_DTOT( date(), seconds() ) ? HB_DTOT( date(), time() ) + added support for optional second parameter passed by reference in HB_TTOD() function. If given then this functions stores in it number of seconds in given day specified by timestamp value, i.e.: dDate := HB_TTOD( HB_DATETIME(), @nSec ) gives similar functionality to: dDate := date() nSec := seconds() + added support for optional 3-rd parameter in HB_TTOD() functions with timestamp format. If given then this function stores time part in second parameter as formatted string value. For empty string _SET_TIMEFORMAT is used, i.e.: dDate := HB_TTOD( HB_DATETIME(), @cTime, "hh:mm:ss" )
Thank you very much! As usual you have found an excellent solution. Best Regards, Francesco _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
