title: how to get local time and put it in a string
body: <p>I have a method <code>s</code> that has as parameter a date time.</p>
  
  <p>How to write it in c++ ?</p>
  
  <p>In <code>c#</code> it is:</p>
  
  <pre><code>string s(System.DateTime sd);
  </code></pre>
  
  <p>EDIT!
  HOW TO CALL THE S METHOD?! also i would like to have in a string the hour, in another string the second..and so on</p>
  
  <p>Another question is: how to convert the time in a string value that has: day, month, hours, min and seconds ?</p>