Added datetime::toInteger().