Commit Graph

115 Commits

Author SHA1 Message Date
Julian Smart
77b88df26f Applied patch [ 1120683 ] Fix for wxDateTime::Format() under Windows CE
by upcase


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-12 10:15:18 +00:00
Włodzimierz Skiba
525d858363 Last .empty() string source cleaning before 2.5.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-02 13:57:02 +00:00
Włodzimierz Skiba
26364344e5 As small as possible reorganization within wxDateTime to please PCH in DLL build under Borland.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-01 19:54:43 +00:00
Vadim Zeitlin
9cc311d32c fixed bug in Set() on DST days (patch 1097811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-31 01:39:54 +00:00
Włodzimierz Skiba
1aaf88d220 Common default datetime formats.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 21:29:23 +00:00
Włodzimierz Skiba
bb8a847812 Warning fixes, IsEmpty->empty.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-09 18:48:38 +00:00
Robin Dunn
3d78a53231 The old workaround for the 1-Jan-1970 bug still failed in some
timezones.  This new workaround seems to work better.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 01:06:45 +00:00
Włodzimierz Skiba
5e233068dc Darwin fixes (OW,BCC,MinGW,DMC tested).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 14:09:48 +00:00
Włodzimierz Skiba
42841dfcad Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-11 16:30:43 +00:00
Włodzimierz Skiba
907173e51d Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:21:57 +00:00
Vadim Zeitlin
4c27e2faf3 deprecated SetToTheWeek() and GetWeek(); added and documented new and well-defined SetToWeekOfYear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 22:07:10 +00:00
Vadim Zeitlin
1c5d27e2ab fixed GetWeekOfYear() for first/last week in some cases (patch 908793)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 21:37:28 +00:00
Włodzimierz Skiba
68379eaf0a Source cleaning: whitespaces, tabs, TRUE/true, FALSE/false, -1/wxID_ANY/wxDefaultCoord, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 12:56:07 +00:00
Vadim Zeitlin
2c622d7178 fixed wxDateTime::GetWeekDayName() for wday > Wed (patch 998646)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-30 23:33:16 +00:00
Vadim Zeitlin
8cc00d5fca fixed bug in wxDateTime::Set(jdn) when DST was in effect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 21:53:15 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Julian Smart
4739346e19 Applied patch [ 859194 ] wxDateTime::SetFromDOS gives unpredictable results
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 10:28:29 +00:00
Vadim Zeitlin
f49d731fd4 fix for wxDateTime::SetToYearDay(last month day) (bug 816065)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-21 23:00:37 +00:00
Julian Smart
653567bb4c char -> wxChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 22:13:36 +00:00
Julian Smart
0308fd61a2 Fixed bug [ 756485 ] wxDateTime::ParseTime fails with assertion when it shouldn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 17:01:15 +00:00
Vadim Zeitlin
560e2916a9 corrected parsing of dates like 01.02.03 (where year can be confused with the day) in ParseDate()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 22:51:50 +00:00
Vadim Zeitlin
de07d2004f implemented wxDateTime::ParseDateTime() (patch 779794)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 23:13:18 +00:00
Stefan Csomor
8805dbab72 macro naming changes, delegate api calls getting property info, object info exposed for beforewriteobject
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 01:12:11 +00:00
Stefan Csomor
b6ac8ca0ff adaption custom types to new macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 23:39:37 +00:00
Stefan Csomor
cb73e6001f xti additions / changes, trying to reduce dependencies
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-23 00:40:53 +00:00
Julian Smart
196be0f137 Warning fixes from ABX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 15:40:58 +00:00
Václav Slavík
3422227afc wxBase compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 17:30:37 +00:00
Vadim Zeitlin
88a036cef3 check the week day for consistency in ParseFormat() (replaces patch 788052)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 22:39:31 +00:00
Vadim Zeitlin
51485b7601 fixed some warnings about unused variables values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-11 01:22:21 +00:00
Václav Slavík
14f355c2b5 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Vadim Zeitlin
e2620fdadc quick and dirty fix for strptime()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-29 23:40:03 +00:00
Julian Smart
1c193821a9 More WinCE mods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:21:47 +00:00
Vadim Zeitlin
7b4fee4930 we probably don't need crit section in GetTimeZone()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 22:46:06 +00:00
Mattia Barbon
df5168c427 Added --use-stl to cnfigure, wxUSE_STL to setup0.h
Moved wx/datetime.inl contents to wx/datetime.h and removed
inline redefinition hack.
  Implemented STL-like interface on top of wxList/wxArray, when wxUSE_STL=0.
  Implemented wxList-like and wxArray interfaces on top of std::list and
std::vector, when wxUSE_STL=1.
  Added arrstr.h, moved wxArrayString declaration there; string.h
#includes arrstr.h only if WXWIN_COMPATIBILITY_2_4 is enabled.
  Added WX_CLEAR_HASH_MAP, WX_CLEAR_HASH_TABLE, WX_CLEAR_LIST macros,
to clear a wxHashMap, wxHashTable, wxList containing pointers: deletes
pointers and makes container zero-sized.
  When wxUSE_STL=1, wxStringList works like a std::list<wxString>.
  Made wxBase compile when wxUSE_STL=1.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 19:52:35 +00:00
Vadim Zeitlin
30e671a59f added virtual dtor to wxDateTimeHolidayAuthority (patch 753947)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-14 13:23:56 +00:00
Vadim Zeitlin
2423ef22ee compilation fix for Unicode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-01 00:48:58 +00:00
Chris Elliott
4ded51f2fa update to make digitalmars compile/link image sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-22 21:12:30 +00:00
Julian Smart
bd4a25bc50 Moved wxDateTime::TIME_T_FACTOR into datetime.cpp to
prevent VC++ confusion


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-11 11:01:39 +00:00
Stefan Csomor
31907d0307 unicode and __MACH__ additions for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-29 15:50:13 +00:00
Julian Smart
55d99c7a77 Fixed copyrights and licence spelling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:28:33 +00:00
Vadim Zeitlin
62ae2780a8 accept \r as a delimiter when parsing dates (bug 684617)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-10 22:14:40 +00:00
Vadim Zeitlin
c54322338f fix bug with timezone calculations when WX_GMTOFF_IN_TM si true
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-27 12:53:03 +00:00
Julian Smart
5283098e13 Applied patch [ 662321 ] Port of wxWindows to Wine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-07 13:49:08 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Vadim Zeitlin
4147efe9ab fixed bug in parsing formats in which fields don't have any non-numeric delimiters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-08 23:12:19 +00:00
Vadim Zeitlin
59d04dff03 fixed the width of the (week day as number) field, should be 1, not 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 23:33:42 +00:00
Gilles Depeyrot
0779cc9a66 use tm_gmtoff instead of timezone variable if tm struct member exists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-12 09:17:04 +00:00
Vadim Zeitlin
fde5a86bda reverted the previous fix, it's no longer needed now after the change to the default base in wxString::ToULong
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-20 13:27:38 +00:00
Vadim Zeitlin
79067a961d fixed bug in ParseDateFormat() with numbers with leading zeroes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-19 15:03:00 +00:00