title: timeBased and time
body: <pre><code>a &lt;- c("12/4/2010 9:30:00","12/4/2010 9:31:00","12/4/2010 9:32:00",
         "12/4/2010 9:33:00","12/4/2010 9:34:00","12/4/2010 9:35:00")
  b &lt;- strptime(a,"%d/%m/%Y %H:%M:%S")
  
  &gt; time(a)
  [1] 1 2 3 4 5 6
  attr(,"tsp")
  [1] 1 6 1
  
  &gt; time(b)    
  Error in hasTsp(x) : invalid time series parameters specified
  
  &gt; timeBased(a)
  [1] FALSE
  
  &gt; timeBased(b)
  [1] TRUE
  </code></pre>
  
  <p>Is there any way to make it work for both <code>time</code> and <code>timeBased</code> functions, meaning no error when using <code>time</code> and returning <code>TRUE</code> with <code>timeBased</code>?</p>