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

utils_datetime Class Reference

A static-only class for commonly used utilites to manipulate date and time. More...

#include <utils_datetime.h>

List of all members.


Static Public Methods

wxDateTime  w3c_string_to_datetime (wxString input_w3c_string)
  Takes a string of an W3C datetime and converts it to a wxDateTime object.

wxString  datetime_to_w3c_string (wxDateTime input_datetime)
  Takes a wxDateTime string and converts it to a an W3C datetime.

wxDateTime  w3c_string_to_date (wxString input_w3c_string)
  Takes a string of an W3C date and converts it to a wxDateTime object.

wxString  date_to_w3c_string (wxDateTime input_date)
  Takes a wxDateTime string and converts it to a an W3C time.

wxDateTime  w3c_string_to_time (wxString input_w3c_string)
  Takes a string of an W3C time and converts it to a wxDateTime object.

wxString  time_to_w3c_string (wxDateTime input_time)
  Takes a wxDateTime string and converts it to a an W3C time.

wxDateTime  get_current_datetime ()
  Get the current datetime.

wxString  get_translated_compilation_date_string ()

Detailed Description

A static-only class for commonly used utilites to manipulate date and time.

For simpler sanity checking, invalid inputs and outputs are set to Now(). The datetime format used is the w3c recommended. They are defined in plucker_defines.h .

See also:
plkrDATE_TIME_FORMAT , plkrDATE_FORMAT , plkrTIME_FORMAT

Member Function Documentation

wxString utils_datetime::date_to_w3c_string wxDateTime    input_date [static]
 

Takes a wxDateTime string and converts it to a an W3C time.

Parameters:
input_date  The date, as a wxDateTime, to be converted to a W3C string.
Returns :
The resulting W3C formatted date string. It is Now() if input was invalid.
wxString utils_datetime::datetime_to_w3c_string wxDateTime    input_datetime [static]
 

Takes a wxDateTime string and converts it to a an W3C datetime.

Parameters:
input_datetime  The wxDateTime to be converted to a W3C string.
Returns :
The resulting W3C formatted datetime string. It is Now() if input was invalid.
wxDateTime utils_datetime::get_current_datetime   [static]
 

Get the current datetime.

Returns :
The current time, as a wxDateTime.
wxString utils_datetime::get_translated_compilation_date_string   [static]
 
Todo:
Fix the compilation date: it won't translate. Months not in catalog? Get a string of translated date of when the program was compiled.
wxString utils_datetime::time_to_w3c_string wxDateTime    input_time [static]
 

Takes a wxDateTime string and converts it to a an W3C time.

Parameters:
input_ime  The time, as a wxDateTime, to be converted to a W3C string.
Returns :
The resulting W3C formatted time string. It is Now() if input was invalid.
wxDateTime utils_datetime::w3c_string_to_date wxString    input_w3c_string [static]
 

Takes a string of an W3C date and converts it to a wxDateTime object.

Parameters:
input_w3c_string  W3C formatted string to convert to a time.
Returns :
The resulting date, as a wxDateTime. Returns Now() if input was invalid.
wxDateTime utils_datetime::w3c_string_to_datetime wxString    input_w3c_string [static]
 

Takes a string of an W3C datetime and converts it to a wxDateTime object.

Parameters:
input_w3c_string  W3C formatted string to convert to a wxDateTime.
Returns :
The resulting wxDateTime. Returns Now() if input was invalid.
wxDateTime utils_datetime::w3c_string_to_time wxString    input_w3c_string [static]
 

Takes a string of an W3C time and converts it to a wxDateTime object.

Parameters:
input_w3c_string  W3C formatted string to convert to a wxDateTime.
Returns :
The resulting time, as a wxDateTime.Returns Now() if input was invalid.