Re: [fpc-pascal] How to use StrToDateTime() to convert a string with no delimiters?

2023-04-24 Thread Michael Van Canneyt via fpc-pascal
On Mon, 24 Apr 2023, Thomas Kurz via fpc-pascal wrote: I always use ScanDateTime for such purposes: https://www.freepascal.org/docs-html/rtl/dateutils/scandatetime.html You can explicitly define the pattern. Correct. This is the only correct way to do this. StrToDateTime is very limited

Re: [fpc-pascal] How to use StrToDateTime() to convert a string with no delimiters?

2023-04-24 Thread Thomas Kurz via fpc-pascal
I always use ScanDateTime for such purposes: https://www.freepascal.org/docs-html/rtl/dateutils/scandatetime.html You can explicitly define the pattern. - Original Message - From: Bo Berglund via fpc-pascal To: fpc-pascal@lists.freepascal.org Sent: Monday, April 24, 2023, 20:08:01 S

[fpc-pascal] How to use StrToDateTime() to convert a string with no delimiters?

2023-04-24 Thread Bo Berglund via fpc-pascal
I have a device that sends data over the serial port with a timestamp in this format: (230424194642W) This is coded as yymmddhhnnss and the last char designates daylight savings (S)ummer or normal (W)inter time. In the example above it is W for normal winter time. What I have done so far is: - R

Re: [fpc-pascal] VASM upgrade to 1.9 breaks cross compiler build

2023-04-24 Thread Karoly Balogh via fpc-pascal
Hi, On Sat, 22 Apr 2023, Derek via fpc-pascal wrote: > I downloaded the updated version of vasm v1.9d and compiled and installed as > per Norman's document. Just as a final update to this thread, Frank informed me, that the official vasm 1.9d release is now out, so all users should upgrade to th