Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
util.hpp
Go to the documentation of this file.
1 #ifndef __STAN__IO__UTIL_HPP__
2 #define __STAN__IO__UTIL_HPP__
3 
4 #include <string>
5 #include <ctime>
6 
7 namespace stan {
8 
9  namespace io {
10 
18  std::string utc_time_string() {
19  std::time_t rawtime = time(0);
20  std::tm *time = gmtime(&rawtime);
21  return std::string(asctime(time));
22  }
23 
24  }
25 }
26 
27 #endif

     [ Stan Home Page ] © 2011–2012, Stan Development Team.