Vadim Zeitlin
adf8a83f4f
correct wxDateTime DST begin/end computations for years > 2006 in USA ( closes #10425 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-28 21:52:37 +00:00
Bryan Petty
aa17604d8d
Fixed regression in r57474 (this is the 2.8 branch, not trunk, treat strings like so).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-22 06:26:40 +00:00
Vadim Zeitlin
9be232e7a9
fix wxTimeSpan::Format() for negative spans with 0 hour component ( #10055 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-21 12:16:06 +00:00
Robin Dunn
21182a4762
64-bit compile fixes, cleanup and use GetTimeZoneInformation for Windows compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-24 04:08:10 +00:00
Vadim Zeitlin
11d4aa9d05
VC8 compilation fix after last change ( #9665 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-30 13:35:51 +00:00
Vadim Zeitlin
180e65df2d
use _get_timezone() under VC8 as _timezone is not available in all CRT versions ( #4691 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-29 01:21:37 +00:00
Vadim Zeitlin
4bdfaa384b
fix wxDateTime::ParseRfc822Date() to handle missing seconds (ticket #1341 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 14:37:26 +00:00
Vadim Zeitlin
ee635d523a
fix bug with parsing negative time zones in ParseRfc822Date()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 23:35:40 +00:00
Vadim Zeitlin
495d64ce39
don't misinterpret the time after the date as a weekday (patch 1836708)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-15 21:03:21 +00:00
Vadim Zeitlin
f9d8aad8f4
don't crash in GetAsDOS() if the time is not in time_t range (bug 1804421)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-30 20:37:29 +00:00
Julian Smart
e88f2e9e59
_get_timezone not available on Pocket PC 2003
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 15:09:59 +00:00
Julian Smart
6689a950a6
Revised timezone fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 13:57:04 +00:00
Julian Smart
09064afea3
APplied patch [ 1776062 ] wxWinCE 2.8.3 (dynamic) VS 2005 - _timezone problem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 13:30:06 +00:00
Vadim Zeitlin
d2adcde938
don't pass 0 time_t to Borland localtime(), it crashes (bug 1704438); also check for error return from both localtime() and gmtime() [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 00:04:39 +00:00
Vadim Zeitlin
fa63e208ce
removed spurious cast of GetTruncatedJDN() return value to WeekDay enum which breaks the code with Watcom (and maybe others) (bug 1618853) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 13:05:47 +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
Paul Cornett
9e477492e2
bitwise vs. logical operator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-07 16:29:58 +00:00
Vadim Zeitlin
bb7afa499a
VC8 has strftime(), even under CE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 23:41:24 +00:00
Vadim Zeitlin
e09080ec62
use built in VC8 time functions instead of our (almost certainly broken) ones for wxWinCE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 23:27:15 +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
Włodzimierz Skiba
57bd4c6031
Include wx/msw/wrap*.h according to pch support (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 19:01:45 +00:00
Włodzimierz Skiba
02761f6cd4
Include wx/module.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 19:31:43 +00:00
Włodzimierz Skiba
bb90a3e6fd
Include wx/stopwatch.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 08:47:47 +00:00
Vadim Zeitlin
e566ccf1ba
handle negative time spans correctly in Format()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-20 15:04:10 +00:00
Włodzimierz Skiba
88a7a4e10e
Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Vadim Zeitlin
3d561414e5
don't use the return result of wxLocaltime_r, we receive the output in second parameter anyhow (simplifies the code and also suppresses warning about tm being not used if WX_GMTOFF_IN_TM is not defined)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 22:28:02 +00:00
Jamie Gadd
44c930ebba
Fix bug in GetTimeZone where timezone wasn't set.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 03:05:45 +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
Vadim Zeitlin
eca0692c77
fixed several bugs in ParseDate() (invalid dates could result in assert failure while some valid dates such as 29 Feb 2004 were not recognized)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 16:20:43 +00:00
Vadim Zeitlin
637b7e4f3a
added semicolons after wxCHECK()s (part of patch 1450705)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 14:16:34 +00:00
Roger Gammans
1d7bc9130c
fix for [1357272] . Replace the fake year with unique tokens to prevent
...
substring matches.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 14:10:51 +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
Dimitri Schoolwerth
6f72133189
fixed compile errors (code was using unnamed objects, resulting in compiler ambiguity)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-20 16:52:36 +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
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
Włodzimierz Skiba
96531a71a0
filename correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-23 20:40:42 +00:00
Vadim Zeitlin
f536f00539
don't declare strptime() ourselves if the system already does it, we might have a slightly different declaration and this causes problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 22:34:03 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
7a7bd38a77
fixed two icc warnings about local variables hiding parameters
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 16:19:02 +00:00
Vadim Zeitlin
4115960d4b
remove extraneous semicolons (patch 1299687)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 20:29:22 +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
9ffaedfcd0
don't define constants unused in release build (SGI CC warning)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-20 22:17:40 +00:00
Chris Elliott
18c9aebeca
fix as discuused on wxdev for bc54
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 15:46:55 +00:00
Vadim Zeitlin
b624acad7e
another (blind) compilation fix for Borland after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 14:09:51 +00:00
Vadim Zeitlin
bd118d35c6
(blind) compilation fix for Borland after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 13:48:56 +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
Michael Wetherell
594588aa22
Work around mingw/cygwin bug 1046059
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 07:47:57 +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
be4e7abf54
fixed GetLocaleDateFormat() to work with all locales, not just ones using only , and
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-08 23:35:34 +00:00
David Elliott
7347d453c5
Thinking about it, this is a bad idea as MW CRT's struct tm is two
...
fields shorter than BSD's as MW's lacks TZ fields.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 08:56:27 +00:00