Well done!

When you want to ask someone the time the most popular way is
Do you have the time?
You can also ask
What time is it?

Do you have time? means Are you free?

Tell me the time. is an order (命令) and is rude (失礼).