What counts as the relationship, how long or both agreeing to commitment?

If both people agree to a committed relationship but it only lasts a week or a day, were those people in a relationship? No? Barely? Yes?
What counts as the relationship, how long or both agreeing to commitment?
Post Opinion