Continuing from your previous post on this subject:
J'ai l'habitude de me coucher tard. -- I am used to going to bed late.
J'avais l'habitude de me coucher tard. -- I was used to going to bed late.
The former is in the present tense whereas the latter is in the imperfect tense.
-- Chris (not a native speaker).