Vadim Zeitlin
|
645706a24e
|
support %l in wxDateTime::ParseFormat()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-07 19:36:59 +00:00 |
|
Vadim Zeitlin
|
6b522db5c8
|
correct wxDateTime DST begin/end computations for years > 2006 in USA (closes #10425)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-28 21:52:37 +00:00 |
|
Vadim Zeitlin
|
c9e46deaa7
|
fix wxTimeSpan::Format() for negative spans with 0 hour component (#10055)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-21 12:16:06 +00:00 |
|
Vadim Zeitlin
|
b3483429d4
|
compilation fix for wxStrlcpy use in STL Unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-02 15:31:12 +00:00 |
|
Vadim Zeitlin
|
e408bf5257
|
add safe wxStrlcpy() function and replaced all wxStrncpy() calls by it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-11-29 14:41:02 +00:00 |
|
Vadim Zeitlin
|
5c33522fca
|
replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-11-02 02:39:52 +00:00 |
|
Vadim Zeitlin
|
b5f85206a9
|
fix ParseFormat("%d") to set the date it finds (#10002)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-09-26 15:27:08 +00:00 |
|
Vadim Zeitlin
|
adec277f04
|
return empty string instead of some garbage if strftime() failed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-08-03 14:34:43 +00:00 |
|
Vadim Zeitlin
|
cf9f673789
|
fix wxDateTime::ParseRfc822Date() to handle missing seconds (ticket #1341)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-06-01 14:37:26 +00:00 |
|
Vadim Zeitlin
|
77fa3d8243
|
add a special macro for comparing time_t values to fix unit test compilation on platforms with 64 bit time_t (such as FreeBSD 6.2 apparently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-06-01 13:01:59 +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 |
|
Julian Smart
|
1fcca711af
|
Resolved ambiguity for VC 9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-02-06 08:45:55 +00:00 |
|
Vadim Zeitlin
|
c20d5805aa
|
compilation fix with wxUSE_EXTENDED_RTTI==1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-02-03 12:24:05 +00:00 |
|
Vadim Zeitlin
|
6b9c622a2e
|
define __VISUALCn__ for n=5,6,7,8,9 and not only 8 (should have been part of r51353)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-29 11:14:51 +00:00 |
|
Vadim Zeitlin
|
070895565e
|
compilation fix for !HAVE_STRPTIME case after ParseXXX() changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-08 13:57:27 +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
|
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 |
|
Vadim Zeitlin
|
804eeca5d5
|
don't misinterpret the time after the date as a weekday (patch 1836708)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-12-15 21:03:21 +00:00 |
|
Vadim Zeitlin
|
1faa4ad2ba
|
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/trunk@49000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-09-30 20:37:29 +00:00 |
|
Vadim Zeitlin
|
770882a69e
|
return the beginning/end of DST in local time, not UTC, for consistency with the other methods; fixed the test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-09-30 19:27:23 +00:00 |
|
Vadim Zeitlin
|
8888d9710f
|
cleaned up and significantly simiplied Format() handling of %c and %x formats and fixed an assert failure in UTF-8 build due to the use of invalid Unicode characters such as -1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-09-30 19:11:36 +00:00 |
|
Vadim Zeitlin
|
e6d4038a8b
|
don't use _T() inside wxGetTranslation() and related macros (wxTRANSLATE, _, ...) to preserve compatibility with the old ASCII build (even at the expense with the Unicode build compatibility)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-09-07 21:47:45 +00:00 |
|
Julian Smart
|
b667edaecd
|
_get_timezone not available on Pocket PC 2003
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-21 15:10:14 +00:00 |
|
Julian Smart
|
791b07a345
|
Revised timezone fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-21 13:57:11 +00:00 |
|
Julian Smart
|
44061d3629
|
APplied patch [ 1776062 ] wxWinCE 2.8.3 (dynamic) VS 2005 - _timezone problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-21 13:30:35 +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 |
|
Václav Slavík
|
0bf751e7e9
|
compilation fixes for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-11 06:10:37 +00:00 |
|
Vadim Zeitlin
|
55809d1394
|
don't pass 0 time_t to Borland localtime(), it crashes (bug 1704438); also check for error return from both localtime() and gmtime()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-04-22 00:03:16 +00:00 |
|
Włodzimierz Skiba
|
b5085b0273
|
Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-02-13 15:49:09 +00:00 |
|
Vadim Zeitlin
|
5a572f6c0a
|
removed spurious cast of GetTruncatedJDN() return value to WeekDay enum which breaks the code with Watcom (and maybe others) (bug 1618853)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-02-12 13:04:24 +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 |
|