git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59421
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Added wxProtocolLog and use it in wxFTP.
- Added wxXmlResource::GetResourceNode().
- Optimize wxString::Replace() to use an O(N) algorithm (Kuang-che Wu).
- Added wxProtocolLog and use it in wxFTP.
- Added wxXmlResource::GetResourceNode().
- Optimize wxString::Replace() to use an O(N) algorithm (Kuang-che Wu).
+- Added support of %l format specifier to wxDateTime::ParseFormat().
haveYear = false,
haveHour = false,
haveMin = false,
haveYear = false,
haveHour = false,
haveMin = false,
+ haveSec = false,
+ haveMsec = false;
bool hourIsIn12hFormat = false, // or in 24h one?
isPM = false; // AM by default
// and the value of the items we have (init them to get rid of warnings)
bool hourIsIn12hFormat = false, // or in 24h one?
isPM = false; // AM by default
// and the value of the items we have (init them to get rid of warnings)
+ wxDateTime_t msec = 0,
+ sec = 0,
min = 0,
hour = 0;
WeekDay wday = Inv_WeekDay;
min = 0,
hour = 0;
WeekDay wday = Inv_WeekDay;
yday = (wxDateTime_t)num;
break;
yday = (wxDateTime_t)num;
break;
+ case _T('l'): // milliseconds (0-999)
+ if ( !GetNumericToken(width, input, &num) )
+ return NULL;
+
+ haveMsec = true;
+ msec = (wxDateTime_t)num;
+ break;
+
case _T('m'): // month as a number (01-12)
if ( !GetNumericToken(width, input, &num) || !num || (num > 12) )
{
case _T('m'): // month as a number (01-12)
if ( !GetNumericToken(width, input, &num) || !num || (num > 12) )
{
+ if ( haveMsec )
+ tm.msec = msec;
+
Set(tm);
// finally check that the week day is consistent -- if we had it
Set(tm);
// finally check that the week day is consistent -- if we had it