System time: Difference between revisions
no edit summary
(Powershell added) |
No edit summary |
||
Line 61:
}</lang>
=={{header|C++}}==
to be compiled under linux with g++ -lboost_date_time systemtime.cpp -o systemtime( or whatever you like)
<lang c++>#include <iostream>
#include <boost/date_time/posix_time/posix_time.hpp>
int main( ) {
boost::posix_time::ptime t ( boost::posix_time::second_clock::local_time( ) ) ;
std::cout << to_simple_string( t ) << std::endl ;
return 0 ;
}</lang>
=={{header|C sharp|C#}}==
|