在一个线程中如何判断过了一天

解决方案 »

  1.   

    判断上一次取得的Now在整数部分比这次取得小1.
      

  2.   

    上次时间now1,现在时间now
    比较incday(now1,1) 与 now
      

  3.   

    UnitDateUtilsCategorydatetime routinesDelphi syntax:function IncDay(const AValue: TDateTime; const ANumberOfDays: Integer = 1): TDateTime;C++ syntax:extern PACKAGE System::TDateTime __fastcall IncDay(const System::TDateTime AValue, const int ANumberOfDays = 0x1);DescriptionIncDay returns the value of the AValue parameter, incremented by ANumberOfDays days. ANumberOfDays can be negative, to return a date N days previous.The time of day specified by the AValue parameter is copied to the result.