Support for integers (timestamps) and move the comparison of dates to the end of the constructor