New methods to convert long values to Date or Calendar.