title: moment.js - display either date OR time
body: <p>On a page that I'm building, there is a requirement to either display the date (eg: 15 Aug) or, if the date is today, just display a time, eg: 10pm.</p>
  
  <p>What would be the best way of coaxing that behaviour out of moment.js?</p>
  
  <p>The format i'd like for a date is 'd MMM' and the format for time would be 'hA' (if minutes are 0) or 'h:mmA' (if minutes are not 0).</p>
  
  <p>Any ideas on how to approach this? It looks like the calendar() function might be able to support something like that?</p>