This idiom usually comes in a negative form, "not give (someone) time of the day.
This means that a person is refusing to talk to someone or spend a little time with someone because he think the other person is unimportant or they once had an argument.
Examples:
The popular kids won't give me the time of the day. They do not think I'm cool.
She won't give me the time of the day. We had a huge fight yesterday.