What dictionary can say about phrase

to have a whale of a time