Date time labels

How does Plotly decide when to show a date and time and when to show times only?

Thanks