Commit Graph

99 Commits

Author SHA1 Message Date
Vadim Zeitlin
7929902d65 no real changes, just fixed all occurences of 'occurence' typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 12:10:58 +00:00
Vadim Zeitlin
425eee4164 correct some compatibility problems with the existing Unicode-mode code (#9513), more remains to be done (#9560)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-09 22:50:55 +00:00
Vadim Zeitlin
f7541d4807 corrected bug in wxTimeSpan::IsShorterThan() for equal time spans (ticket #9539)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-05 23:51:04 +00:00
Vadim Zeitlin
154014d681 added wxDateTime::SetFrom/GetAsMSWSysTime() (#9161)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-22 00:49:27 +00:00
Vadim Zeitlin
9b4da62701 PalmOS compilation fixes (wx-trunk-out.diff part of patch 1894861)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-02 00:43:06 +00:00
Vadim Zeitlin
a0bcd61bbc compilation fix for wchar_t-based builds after ParseISOXXX() additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:38:11 +00:00
Vadim Zeitlin
f3f2e255b4 added wxDateTime::FormatISOCombined() and ParseISODate/Time/Combined()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 13:04:56 +00:00
Vadim Zeitlin
fcd47970b8 correct wrong last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 01:36:24 +00:00
Vadim Zeitlin
3371873669 added another ParseFormat() overload for better backwards compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 01:35:28 +00:00
Vadim Zeitlin
71ebd60b06 make wxDateTime::ParseXXX() functions char*-friendly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 00:17:45 +00:00
Vadim Zeitlin
75a29ef15c added configure option for wxUSE_AUTOID_MANAGEMENT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 21:01:38 +00:00
Vadim Zeitlin
1cf57808cb fix bug with parsing negative time zones in ParseRfc822Date()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 23:35:40 +00:00
Stefan Csomor
92f89387a8 cleanup mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-20 07:19:33 +00:00
Julian Smart
135d1ad065 Applied patch [ 1764987 ] fix localtime link error using wm5 SDK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 12:14:09 +00:00
Vadim Zeitlin
d3c58c7ec0 use wxLongLong::ToLong() and not GetLo() to extract time_t value in GetTicks(): they are very different on 64 bit platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 13:43:57 +00:00
Václav Slavík
b5dbe15d0b added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Václav Slavík
12e8247795 use wxString in wxDateTime methods (only partially done)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 18:41:27 +00:00
Vadim Zeitlin
4bd5322403 use wxINT32_MIN, not LONG_MIN, in wxDateTime default ctor to fix it under LP64 platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 15:01:48 +00:00
Vadim Zeitlin
a56a1234a5 removed wxABI_TESTS, they're irrelvant in 2.9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-31 03:40:59 +00:00
Vadim Zeitlin
bc94d944d0 use LLONG_MIN instead of -1 (which is a valid time value corresponding to 1ms before Epoch) for the invalid wxDateTime m_time value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-24 17:37:54 +00:00
Vadim Zeitlin
fb96cf856e added wxDateTime::GetDateOnly()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-18 14:06:37 +00:00
Vadim Zeitlin
18c7af7e80 suppress a CodeWarrior warning about long to int conversion (bug 1616948)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 15:49:46 +00:00
Robin Dunn
56560c387f Add DLL export macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-05 21:20:51 +00:00
Vadim Zeitlin
34f90a1cfe added NZST and NZDT time zones (request 617912)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 00:05:56 +00:00
Vadim Zeitlin
a333edbddf added non-static GetCentury(), removed default value for static GetCentury() parameter which didn't make any sense at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-20 13:40:11 +00:00
Vadim Zeitlin
bd35ed323f added wxTimeSpan::Millisecond[s]() for consistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 00:58:44 +00:00
Vadim Zeitlin
9c21e80bb0 seconds and milliseconds in wxTimeSpan ctor should be long long, not long
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 00:52:57 +00:00
Włodzimierz Skiba
ca3e85cfa8 Better backward compatibility and deprecation markup for interface deprecated in comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 14:04:17 +00:00
Włodzimierz Skiba
740af654d1 Watcom does not accept #warning but supports more than MSW port.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-10 19:39:28 +00:00
Stefan Neis
5b52a68426 No obnoxious warnings if threading is disabled.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-31 18:56:32 +00:00
Stefan Neis
cf44a61c24 Added implementation for wxLocaltime_r/wxGmtime_r.
Improved handling of windows compilers.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-18 19:24:11 +00:00
Vadim Zeitlin
33d5c15653 blatant compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-18 16:03:26 +00:00
Stefan Neis
a452689b23 Use thread-safe functions where possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-17 22:01:43 +00:00
Vadim Zeitlin
84006e65e8 removed wxABI_VERSION checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 20:23:30 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
d26adb9df7 Fixed several bugs in wxDateTime timezone handling:
- ToTimezone() and MakeTimezone() now work as expected
 - added and documented FromTimezone() and MakeFromTimezone()
 - Set(double jdn) interprets jdn always in UTC
 - updated ParseRfc822Date() timezone handling
 - removed workarounds for old bugs from the test


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 13:06:36 +00:00
Julian Smart
3103e8a97e Typo correction patch [ 1208110 ] Lots of typo corrections
Olly Betts


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Vadim Zeitlin
271f607224 merged in rev 1.28 of wx/datetime.inl: copy milliseconds in Set() too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-13 12:39:15 +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
cb1ef83399 use ResetTime() in Today() instead of dealing with raw struct tm which introduces a bug around DST changes (replaces patch 1097811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 01:21:35 +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
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
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
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
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
Vadim Zeitlin
d5d29b8a22 renamed WX_DEFINE_ARRAY_NO_PTR in WX_DEFINE_ARRAY_PTR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-08 22:13:14 +00:00
Václav Slavík
1202890513 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Vadim Zeitlin
fc7a2a602b undisable many warnings for VC++ in defs.h and fixed several thousands of them in the sources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 00:24:07 +00:00