Creates an instance based on the passed Java Time value.
Creates an instance with the passed date and time.