Although it is only about an hour's flight from Dublin to London you can easily kill half a day because of having to get to the airport early, check in, fly, pick up your luggage and then get into the city of London. If you want to visit London I would advise more than one day.