title: how to represent date type in apache thrift
body: <p>I'm developing a service using <a href="http://thrift.apache.org/" rel="noreferrer">apache thrift</a> and I need to define periods of time. Dates are significant (<code>YYYY-mm-dd</code>) and time should be totally omitted (<code>HH:ii:ss</code>). I couldn't find any specific date/datetime thrift data type so I'm thinking about two approaches:</p>
  
  <ol>
  <li><p>more complex</p>
  
  <pre><code>int year,
  int month,
  int day,
  </code></pre></li>
  <li><p>less complex but includes time of day part which I don't need.</p>
  
  <pre><code>int timestamp
  </code></pre></li>
  </ol>
  
  <p>Is there a common thrift approach to represent date(time) types?</p>