The other responses are correct, but it's also worth pointing out that the 'a' before 'quarter' is optional - at least in British English. You can say either 'It's quarter to six' or 'It's a quarter to six'. Some people may consider it more correct and formal to use the article, but it is not a mistake to omit it.
Personally, I have never used 'a' before 'quarter' : I have always said simply 'quarter to' and 'quarter past'.