Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

utils_datetime.h

Go to the documentation of this file.
      00001 //----------------------------------------------------------------------------------------
      00011 // RCS-ID:      $Id: utils_datetime.h,v 1.10 2002/08/27 20:27:39 robertoconnor Exp $
      00012 //----------------------------------------------------------------------------------------
      00013 
      00014 //----------------------------------------------------------------------------------------
      00015 // Begin single inclusion of this .h file condition
      00016 //----------------------------------------------------------------------------------------
      00017 
      00018 #ifndef _UTILS_DATETIME_H_
      00019 #define _UTILS_DATETIME_H_
      00020 
      00021 //----------------------------------------------------------------------------------------
      00022 // GCC interface
      00023 //----------------------------------------------------------------------------------------
      00024 
      00025 #if defined(__GNUG__) && ! defined(__APPLE__)
      00026     #pragma interface "utils_datetime.h"
      00027 #endif
      00028 
      00029 //----------------------------------------------------------------------------------------
      00030 // Shared defines
      00031 //----------------------------------------------------------------------------------------
      00032 
      00033 #include "plucker_defines.h"
      00034 
      00035 //----------------------------------------------------------------------------------------
      00036 // Headers
      00037 //----------------------------------------------------------------------------------------
      00038 
      00039 #include "wx/datetime.h"
      00040 
      00041 //----------------------------------------------------------------------------------------
      00042 // Class definition: utils_datetime (static only)
      00043 //----------------------------------------------------------------------------------------
      00044 
      00046 
      00054 class utils_datetime 
      00055 {
      00056 
      00057 public:
      00058 
      00060 
      00064     static wxDateTime  w3c_string_to_datetime( wxString input_w3c_string );
      00065     
      00067 
      00072     static wxString    datetime_to_w3c_string( wxDateTime input_datetime );
      00073 
      00075 
      00079     static wxDateTime  w3c_string_to_date( wxString input_w3c_string );
      00080     
      00082 
      00086     static wxString    date_to_w3c_string( wxDateTime input_date );
      00087     
      00092 
      00093     static wxDateTime  w3c_string_to_time( wxString input_w3c_string );
      00094     
      00096 
      00100     static wxString    time_to_w3c_string( wxDateTime input_time );
      00101 
      00103 
      00106     static wxDateTime  get_current_datetime();
      00107     
      00110     static wxString    get_translated_compilation_date_string();
      00111     /*
      00112         \return A string of the compilation date of the application.
      00113      */
      00114 
      00115 };
      00116 
      00117 //----------------------------------------------------------------------------------------
      00118 // End single inclusion of this .h file condition
      00119 //----------------------------------------------------------------------------------------
      00120 
      00121 #endif  //_UTILS_DATETIME_H_
      00122