core/vul/vul_get_timestamp.h
Go to the documentation of this file.
00001 // This is core/vul/vul_get_timestamp.h
00002 #ifndef vul_get_timestamp_h_
00003 #define vul_get_timestamp_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 
00008 //:
00009 // \file
00010 // \brief Obtains time elapsed since 1 Jan 1970, in seconds and milliseconds
00011 // \author fsm
00012 //
00013 // \verbatim
00014 // Modifications
00015 // PDA (Manchester) 21/03/2001: Tidied up the documentation
00016 // \endverbatim
00017 
00018 
00019 #include <vcl_string.h>
00020 
00021 
00022 //: purpose: obtain time elapsed since 1 Jan 1970, in seconds and milliseconds.
00023 void vul_get_timestamp(int &secs, int &msecs);
00024 
00025 
00026 //: Enum to specify style option for vul_get_time_as_string()
00027 enum vul_time_style
00028 {
00029   vul_asc,         //!< format used by std:asctime() e.g. "Fri Dec 8 14:54:17 2006"
00030   vul_numeric_msf  //!< space-separated numbers, most significant first "e.g. 2006 12 08 14 54 17"
00031 };
00032 
00033 //: Get the present time and date as a string, e.g. "Fri Dec 8 14:54:17 2006"
00034 vcl_string vul_get_time_as_string(vul_time_style style=vul_asc);
00035 
00036 
00037 #endif // vul_get_timestamp_h_