Welcome to the forum.
Well, "Do you have the time?" basically means "What's the time?" or "Can you tell me what the time is?"
I don't know if "Yes, it is five of four" means "It's five to four" (3.55) or "It's five past four" (4.05). It's not a construction I've heard before. Where did you find it?
Student or Learner