return date + (end - datestr.begin());
}
+ const wchar_t *ParseFormat(const wchar_t *date,
+ const wchar_t *format = wxDefaultDateTimeFormat,
+ const wxDateTime& dateDef = wxDefaultDateTime)
+ {
+ return ParseFormat(date, wxString(format), dateDef);
+ }
+
const char *ParseFormat(const char *date,
- const wxString& format = wxDefaultDateTimeFormat,
+ const char *format = wxDefaultDateTimeFormat,
const wxDateTime& dateDef = wxDefaultDateTime)
{
- return ParseFormat(wxString(date), format, dateDef);
+ return ParseFormat(wxString(date), wxString(format), dateDef);
}
// parse a string containing the date/time in "free" format, this
case _T('r'): // time as %I:%M:%S %p
{
wxDateTime dt;
- input = dt.ParseFormat(input, _T("%I:%M:%S %p"));
+ input = dt.ParseFormat(input, wxS("%I:%M:%S %p"));
if ( !input )
{
// no match
case _T('R'): // time as %H:%M
{
wxDateTime dt;
- input = dt.ParseFormat(input, _T("%H:%M"));
+ input = dt.ParseFormat(input, wxS("%H:%M"));
if ( !input )
{
// no match