Ad
  • Default User Avatar

    Because last and today are Data objects. Date objects encapsulate an integral number that represents milliseconds since the midnight at the beginning of January 1, 1970, UTC. In other words today and last in milliseconds. So to get the days the denominator must also be in milliseconds.