--- /dev/null
+// Roast+ License
+
+/*
+*/
+#ifndef __SFJP_ROAST__time_HPP__
+#define __SFJP_ROAST__time_HPP__
+
+#include "roast/time/time.hpp"
+
+#endif//__SFJP_ROAST__time_HPP__
--- /dev/null
+// Roast+ License
+/*
+
+*/
+#ifndef __SFJP_ROAST__time__time_HPP__
+#define __SFJP_ROAST__time__time_HPP__
+
+#include "roast/time/unixtime.hpp"
+
+#endif//__SFJP_ROAST__time__time_HPP__
\ No newline at end of file
{
///////////////////////////////////////////////////////////////
- class datetime
+ typedef ::time_t unix_time_t, unix_time_type;
+
+ unix_time_type get_unix_time_now(){
+ return ::time(NULL);
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ class unix_time
{
+ protected:
+ unix_time_type m_time;
public:
- datetime(){]
+ unix_time(){ m_time = get_unix_time_now(); }
+ unix_time(const unix_time_type& tm) : m_time(tm) {}
+
+ unix_time_type get_time() const { return m_time; }
+ void set_time(const unix_time_type& tm) { m_time = tm; }
};
///////////////////////////////////////////////////////////////
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
- RelativePath=".\tuple_test3.cpp"
+ RelativePath=".\time_test.cpp"
>
</File>
</Filter>