In DateTime.xsp:
https://metacpan.org/source/MDOOTSON/Wx-0.9922/ext/datetime/XS/DateTime.xsp
lines 120-128, you find:
#if WXPERL_W_VERSION_LT( 2, 9, 0 )
wxString ParseFormat( wxString date,
wxString format = wxDefaultDateTimeFormat,
const wxDateTime& dateDef = wxDefaultDateTimePtr );
wxString ParseDate( wxString date);
wxString ParseDateTime( wxString date);
wxString ParseTime( wxString date);
wxString ParseRfc822Date( wxString date);
#endif
What does that mean in respect of my OP?
Many TIA
Helen
----- Original Message -----
From: Helen Craigman
To: wxperl-users
Sent: Saturday, 22 June, 2013 13:05
Subject: Is Wx::DateTime fully implemented in WxPerl?
Dear esteemed wxPerl experts
Is Wx::DateTime fully implemented in WxPerl?
These three statements work fine:
use Wx::DateTime;
#...
$date_to_wx = Wx::DateTime->new;
# ...
$time_from_ctrl->SetValue($time_from_wx); # (where $time_from_ctrl is a
Wx::TimePickerCtrl)
# ...
$time_from_ctrl->GetValue($time_from_wx);
But, when trying one of these:
$timeformat = '%T';
#...
$time_from_wx = Wx::DateTime->ParseFormat('0:0:0', $timeformat);
or trying:
$time_from_wx = Wx::DateTime->ParseTime('0:0:0');
it bumps with: "Can't locate object method "ParseFormat" via package
"Wx::DateTime" at ... line ..."
(Same for ParseTime).
ParseTime and ParseFormat are wxWidgets DateTime methods.
Am I missing something, or calling with a wrong syntax?
Where can you find all implemented methods for wxPerl Wx::DateTime?
Many TIA
Helen
NB My system: Windows 7, Citrus Perl 5.16.3, wxWidgets 2.9.4