summaryrefslogtreecommitdiff
path: root/trunk/ACE/examples/Misc/test_timestamp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/examples/Misc/test_timestamp.cpp')
-rw-r--r--trunk/ACE/examples/Misc/test_timestamp.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/trunk/ACE/examples/Misc/test_timestamp.cpp b/trunk/ACE/examples/Misc/test_timestamp.cpp
new file mode 100644
index 00000000000..e61ddace9b3
--- /dev/null
+++ b/trunk/ACE/examples/Misc/test_timestamp.cpp
@@ -0,0 +1,21 @@
+// $Id$
+
+// Test the ACE::timestamp method.
+
+#include "ace/OS_main.h"
+#include "ace/ACE.h"
+#include "ace/Log_Msg.h"
+
+ACE_RCSID(Misc, test_timestamp, "$Id$")
+
+int
+ACE_TMAIN (int, ACE_TCHAR *[])
+{
+ ACE_TCHAR day_and_time[35];
+ ACE::timestamp (day_and_time,
+ sizeof day_and_time);
+
+ ACE_DEBUG ((LM_DEBUG, "%s", day_and_time));
+
+ return 0;
+}