title: Get current time including seconds from Sys.Date() in R
body: <p>I am sure this is pretty basic, but I am not able to extract various peices of time from the system date.  Simply, I am not sure why I can not accurately extract the current minutes and seconds using %M or %S.  Any thoughts?</p>
  
  <p>It currently is 12:38 pm on my machine.</p>
  
  <pre><code>&gt; format(Sys.Date(), "%c")
  [1] "12/16/2011 12:00:00 AM"
  
  &gt; R.Version()
  $platform
  [1] "i386-pc-mingw32"
  
  $arch
  [1] "i386"
  
  $os
  [1] "mingw32"
  
  $system
  [1] "i386, mingw32"
  
  $status
  [1] ""
  
  $major
  [1] "2"
  
  $minor
  [1] "14.0"
  
  $year
  [1] "2011"
  
  $month
  [1] "10"
  
  $day
  [1] "31"
  
  $`svn rev`
  [1] "57496"
  
  $language
  [1] "R"
  
  $version.string
  [1] "R version 2.14.0 (2011-10-31)"
  </code></pre>