Changeset 14542


Ignore:
Timestamp:
10/30/12 12:53:31 (12 years ago)
Author:
tbretz
Message:
JavaData() cannot return invalid values.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Time.h

    r13954 r14542  
    101101    double UnixDate() const;
    102102    double RootTime() const;
    103     uint64_t JavaDate() const { return uint64_t(UnixTime()*1000); }
     103    uint64_t JavaDate() const { return IsValid() ? uint64_t(UnixTime()*1000) : 0; }
    104104
    105105    std::string MinutesTo(const Time & = Time()) const;
Note: See TracChangeset for help on using the changeset viewer.