Hi, On 2010 May 19, at 23:59, Leandro Damasio - 2D Info wrote: > > <.code> > procedure main() > local t1:=date() > local t2:=ctod(dtoc(date())) > ? "t1",t1 // current date > ? "t2",t2 // current date > ? "t1=t2",t1=t2 // shows .F. > ? "t1=date()",t1=date() // shows .T. > ? "t2=date()",t2=date() // shows .F. > ? "t1==t2",t1==t2 // shows .F. > ? "t1==date()",t1==date() // shows .T. > ? "t2==date()",t2==date() // shows .F. > return > </code> > Shouldn't the comparisons above all return .T.?
No, it's correct behavior. Think about SET CENTURY. If you want reversible conversion independent from any setting, use STOD()/DTOS(). Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour