aboutsummaryrefslogtreecommitdiff
path: root/butl/timestamp
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-25 08:56:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-25 08:56:48 +0200
commit098559ca3552ebd8f80a6d28254f4fa58913b751 (patch)
tree1eb6f65b492d3217a380a909f6810a5f3e00cc37 /butl/timestamp
parent6c8e3f09c185d7fa4664ccd9e5c4f623a17b84cc (diff)
Add DLL export/import support
Diffstat (limited to 'butl/timestamp')
-rw-r--r--butl/timestamp8
1 files changed, 5 insertions, 3 deletions
diff --git a/butl/timestamp b/butl/timestamp
index 02f8a92..04a65b7 100644
--- a/butl/timestamp
+++ b/butl/timestamp
@@ -8,6 +8,8 @@
#include <chrono>
#include <iosfwd>
+#include <butl/export>
+
#include <butl/path>
namespace butl
@@ -75,7 +77,7 @@ namespace butl
// - support %(N) version for non-optional printing
// - support for suffix %[<d>N<s>], for example %[N nsec]
//
- std::ostream&
+ LIBBUTL_EXPORT std::ostream&
to_stream (std::ostream&,
const timestamp&,
const char* format,
@@ -88,7 +90,7 @@ namespace butl
return to_stream (os, ts, "%Y-%m-%d %H:%M:%S%[.N]", true, true);
}
- std::ostream&
+ LIBBUTL_EXPORT std::ostream&
operator<< (std::ostream&, const duration&);
// Parse human-readable representation of the timestamp.
@@ -130,7 +132,7 @@ namespace butl
// - ability to parse local, return UTC and vice-versa
// - handle timezone parsing
//
- timestamp
+ LIBBUTL_EXPORT timestamp
from_string (const char* input,
const char* format,
bool local,