sergei
6a9a991dca
* Fixed TryStrToDateTime so it returns True only if both date and time are parsed successfully, resolves #17541 .
...
git-svn-id: trunk@16099 -
2010-10-07 09:48:18 +00:00
florian
4671615dc7
* disable east asia/era stuff on WinCE, the functions does not seem to be available there, fixed compilation of trunk for WinCE
...
git-svn-id: trunk@15782 -
2010-08-11 20:30:14 +00:00
marco
8caa62618f
* support for east asia locale in formatdatetime. Patch from Taka_JP, mantis 14955 modified for recent sysutils rework, and to init eastasia support only once.
...
git-svn-id: trunk@15776 -
2010-08-11 09:03:13 +00:00
marco
706f0b7975
* New more delphi compat intstrtotime by Bart Broersma #15505 + test
...
git-svn-id: trunk@14854 -
2010-02-03 15:10:14 +00:00
marco
b3ea1668db
* improvements to sysuitls date/time formatting routines: (Mantis 14905,Sergei)
...
- Adds threadsafe (Delphi-compatible) versions of DateToStr,
TimeToStr, DateTimeToStr, FormatDateTime.
- Core functionality moved to DateTimeToString, which directly
uses 'out' parameter in order to avoid unnecessary result copying.
- Modified the code so no temporary AnsiStrings are used (speed).
- Fixes a bug which would cause infinite recursion if
(Short|Long)DateFormat variable would contain 'd' character or,
likewise, (Short|Long)TimeFormat would contain 't'.
- Fixes numerous small Delphi compatibility issues, like: empty format
string has the same effect as 'C'; overlong tokens treated as the
longest possible ones (e.g. 'ddddddddd' is the same as 'dddddd');
'AM/PM' is output preserving its case, etc.
- minor reformating
git-svn-id: trunk@14116 -
2009-11-08 15:07:00 +00:00
marco
887d8a9d92
* replace encodedate/time by try variants mantis 14969
...
git-svn-id: trunk@14110 -
2009-11-08 11:43:01 +00:00
marco
8bc0583045
* trystrto* variants with formatsettings.
...
git-svn-id: trunk@14018 -
2009-11-03 21:20:10 +00:00
ivost
bab5c5d8a3
* parameter "Separator" of function TryStrToDate was not passed to IntStrToDate
...
git-svn-id: trunk@13959 -
2009-10-26 17:34:07 +00:00
michael
ed950da9cc
* Forgot raise statement in strtodate (thanks to Denis Golovan)
...
git-svn-id: trunk@13928 -
2009-10-23 10:24:24 +00:00
michael
4c2fe8bc31
* Correctly split date/time parts when dateseparator is a space
...
git-svn-id: trunk@13888 -
2009-10-17 11:18:16 +00:00
michael
cb29ddbd04
* TryStrToTime/TryStrToDate no longer need to catch exceptions
...
git-svn-id: trunk@13865 -
2009-10-16 09:31:09 +00:00
michael
dadd6631ad
* Patch from Alex Rayne (bug ID 14622) to provide some overloaded versions of the strtodate/strtotime functions
...
git-svn-id: trunk@13864 -
2009-10-16 08:16:55 +00:00
joost
4fc5d5dbef
* Show provided invalid date in StroToDate error messages
...
* Show a proper error-message if an empty string is supplied to StrToDate
git-svn-id: trunk@12452 -
2008-12-28 22:37:59 +00:00
michael
65637e301f
* Fixed strtotime. Last character was never taken into account
...
git-svn-id: trunk@12005 -
2008-11-01 11:05:21 +00:00
michael
767e3fee62
* Patch from Joao Morais to fix the case where only a time is provided
...
git-svn-id: trunk@11199 -
2008-06-05 07:06:47 +00:00
yury
62e616cae0
* Fixed warnings. rtl is warnings and notes free for wince and win32 again.
...
git-svn-id: trunk@10632 -
2008-04-12 13:34:26 +00:00
michael
d20636a319
* Fix from Petr Kristan to remofe timereformat (kills AM/PM)
...
git-svn-id: trunk@10616 -
2008-04-08 17:37:05 +00:00
michael
33cb576bba
* Patch for arithmetic overflow from Petr Kristan
...
git-svn-id: trunk@10566 -
2008-03-26 15:33:24 +00:00
michael
8793de3166
* Applied patch from Sergei Gorelkin for ComposeDateTime and IncAMonth
...
git-svn-id: trunk@9600 -
2007-12-30 22:20:11 +00:00
marco
54d8f93b25
* fix for 9772
...
git-svn-id: trunk@8677 -
2007-09-29 09:18:15 +00:00
marco
827d380691
* pchar(pointer()) isms that were safe.
...
git-svn-id: trunk@8672 -
2007-09-28 21:57:45 +00:00
Almindor
1e4dd0685a
* fix bug #9438
...
git-svn-id: trunk@8288 -
2007-08-16 09:58:35 +00:00
florian
628452f04d
+ ReplaceDate
...
git-svn-id: trunk@7794 -
2007-06-24 15:15:53 +00:00
michael
79b572ccae
* Fixed bug #8187
...
git-svn-id: trunk@6990 -
2007-03-24 23:36:35 +00:00
michael
74cbe82e3f
* Fixed TimeToStr and DateTimeToStr so they are delphi compatible
...
git-svn-id: trunk@6986 -
2007-03-24 22:43:02 +00:00
Jonas Maebe
6eb320506b
* fixed range error in incmonth()
...
git-svn-id: trunk@6858 -
2007-03-14 19:48:08 +00:00
yury
2602ceb7e4
* Fixed StrToTime. TimeAMString and/or TimePMString can be empty on some locales and StrToTime crashed in this case.
...
git-svn-id: trunk@5957 -
2007-01-13 23:00:55 +00:00
Jonas Maebe
18eaee6ea3
* force tryencodetime to perform calculation using the precision of
...
tdatetime
git-svn-id: trunk@5941 -
2007-01-13 14:58:35 +00:00
michael
14eaf7200e
* Fixed buf 7168
...
git-svn-id: trunk@5932 -
2007-01-12 20:49:54 +00:00
joost
27213c6873
* Fix strtodate for dates between 1 and 100 AD
...
git-svn-id: trunk@5658 -
2006-12-21 01:49:12 +00:00
florian
2659c32078
* repeat inline in the body
...
git-svn-id: trunk@5257 -
2006-11-05 21:47:29 +00:00
Almindor
0c6e1e4c44
* fixes StrToTime() thanks to jesus
...
git-svn-id: trunk@5100 -
2006-10-30 22:52:56 +00:00
marco
2f8f88f801
* Replacetime. Bug #7680
...
git-svn-id: trunk@5033 -
2006-10-27 18:29:00 +00:00
marco
304be38ec1
* datetotime-def functions (but not yet FormatSettings) + ansidequotedstr (turned
...
out to be extractquotestr wrapper).
git-svn-id: trunk@5032 -
2006-10-27 18:20:02 +00:00
micha
d704af7216
fix compilation for {$T+} linux/win
...
git-svn-id: trunk@4794 -
2006-10-04 20:43:55 +00:00
Jonas Maebe
327718e0c4
* changed some var parameters in out parameters to avoid warnings
...
git-svn-id: trunk@4341 -
2006-08-03 16:47:10 +00:00
yury
82b74ffc64
* fixed warning and note while compiling RTL.
...
git-svn-id: trunk@4265 -
2006-07-20 12:31:58 +00:00
yury
fefe85a86a
* Fixed warning.
...
git-svn-id: trunk@4258 -
2006-07-19 18:24:26 +00:00
joost
391dc9a9fb
+ Implemented ComposeDateTime for general use
...
git-svn-id: trunk@4007 -
2006-06-29 22:18:18 +00:00
michael
85017f4139
+ Fixed incMonth so it truncates on the number of days in the target month
...
git-svn-id: trunk@3864 -
2006-06-13 22:23:25 +00:00
florian
02db8f5c84
* fixes Joost's commit for non unix hopefully
...
git-svn-id: trunk@3690 -
2006-05-27 08:35:56 +00:00
joost
35c5b75792
+ Several dateutil-fixes for dates before 1899/12/30
...
git-svn-id: trunk@3687 -
2006-05-26 20:55:03 +00:00
michael
7c29068ae3
* Patch from Joost van der Sluis to correct negative date-times
...
git-svn-id: trunk@3635 -
2006-05-23 07:36:51 +00:00
marco
eaad63e82b
* fix for 4970
...
git-svn-id: trunk@3318 -
2006-04-23 09:55:59 +00:00
micha
ff31761d62
fix datetime from/to timestamp conversion (delphi compat)
...
git-svn-id: trunk@3201 -
2006-04-13 16:32:07 +00:00
marco
dd063d920d
* currentyear (bug 4904)
...
git-svn-id: trunk@3031 -
2006-03-25 15:07:54 +00:00
michael
84a4c40a3d
+ Patch from Joost Van der Sluis to fix DoEncodeTime
...
git-svn-id: trunk@732 -
2005-07-23 21:13:58 +00:00
Jonas Maebe
437f35315c
* fixed datetime related routines for unix
...
git-svn-id: trunk@444 -
2005-06-19 14:49:37 +00:00
florian
64c72bd312
* patch from Joost van der Sluis to remove VIRTUALPASCAL define since VP is officially dead
...
git-svn-id: trunk@374 -
2005-06-10 17:05:35 +00:00
peter
4ace790492
* remove $Log
...
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00