summaryrefslogtreecommitdiff
path: root/ACE/examples/Misc/test_timestamp.cpp
blob: a0d3d6246dc1adf0addfac88136e3169d1992fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test the ACE::timestamp method.

#include "ace/OS_main.h"
#include "ace/ACE.h"
#include "ace/Log_Msg.h"


int
ACE_TMAIN (int, ACE_TCHAR *[])
{
  ACE_TCHAR day_and_time[27];
  ACE::timestamp (day_and_time,
                  sizeof day_and_time);

  ACE_DEBUG ((LM_DEBUG, "%s", day_and_time));

  return 0;
}