1 is wrong. Say, 'It's time for you to go to bed' or 'It's time for bed.' This is simply a statement of fact.
2 is fine. It's usually said in a reproving tone of voice to a child who is overtired through having stayed up too long.
Student or Learner