title: Convert Date and time into categories
body: <p>I have a dataframe df as shown below. It is there is Date and time format. Is there a way to convert them into Year, Month, Day, Date, Hour, Minute and Second. For example</p>
  
  <pre><code>      df &lt;- 
        Date                    A     B     C
      1 2017-09-19 00:00:00    42    27    39
      2 2017-09-19 00:05:00    40    36    42
      3 2017-09-19 00:10:00    41    40    33
      4 2017-09-19 00:15:00    45    31    26
      5 2017-09-19 00:20:00    25    44    29
      6 2017-09-19 00:25:00    39    34    42
      7 2017-09-19 00:30:00    44    39    24
      8 2017-09-19 00:35:00    25    44    34
      9 2017-09-19 00:40:00    39    41    35
  </code></pre>
  
  <p>I need below </p>
  
  <pre><code>      df &lt;- 
        Date                    A     B     C    Year     Month    Day  Date   Hour   Min   Sec
      1 2017-09-19 00:00:00    42    27    39    2017      Sep     Tue   19     00    00     00
      2 2017-09-19 00:05:00    40    36    42    2017      Sep     Tue   19     00    05     00
      3 2017-09-19 00:10:00    41    40    33    2017      Sep     Tue   19     00    10     00
      4 2017-09-19 00:15:00    45    31    26    2017      Sep     Tue   19     00    15     00
      5 2017-09-19 00:20:00    25    44    29    2017      Sep     Tue   19     00    20     00
      6 2017-09-19 00:25:00    39    34    42    2017      Sep     Tue   19     00    25     00
      7 2017-09-19 00:30:00    44    39    24    2017      Sep     Tue   19     00    30     00
      8 2017-09-19 00:35:00    25    44    34    2017      Sep     Tue   19     00    35     00
      9 2017-09-19 01:40:00    39    41    35    2017      Sep     Tue   19     01    40     00
  </code></pre>