title: .Net - Time of the day
body: <p>I am working on an application that needs to set rules for periods of time. The company has different branches, each branch can set its own rules (i.e a branch starts work at 8.30 am, ends work at 17.30 pm, with 30 minutes pause for lunch; another branch start at 9.00, ends at 19.00 with 1 hour pause...)</p>
  
  <p>So I need to define a class (let's call it <code>WorkingDayDefinition</code> for the moment) where start and end are not actually a <code>DateTime</code>, because they are not referred to any specific day in particular. 
  At the moment the only option I see in C# is using <code>Timespan</code> for setting a duration from the beginning of the day, so that 8.30 pm would be <code>TimeSpan(8,30,0)</code> to be added to the Day part of whichever day.  </p>
  
  <p>Is this a best practice in C#?</p>
  
  <p>I searched for third parties libraries that could help me, but so far my best bet is this one:</p>
  
  <p><a href="http://www.codeproject.com/Articles/168662/Time-Period-Library-for-NET" rel="nofollow">http://www.codeproject.com/Articles/168662/Time-Period-Library-for-NET</a></p>
  
  <p>that is not strictly what I need  </p>