
A devil of a job/time
Emphasis on Difficulty
The phrase adds strong emphasis to how hard a task is, often more than just 'difficult'. 
Emotional Frustration
Use it to express personal frustration due to the challenge faced. 
Colloquial Colour
It's conversational English, so it fits better in informal talks than formal writings. 