Re[2]: [fpc-pascal] How to convert ISO format string in FreePascal

2010-05-05 Thread José Mejuto
Hello FPC-Pascal, Wednesday, May 5, 2010, 11:23:42 PM, you wrote: FC> Is the an LCL routine that can get the timezone from the computer on both FC> Windows and Linux? None of the examples mention a way of getting the FC> computer's time zone. Usually you will have an environment variable TZ, but

Re: [fpc-pascal] How to convert ISO format string in FreePascal

2010-05-05 Thread Frank Church
Is the an LCL routine that can get the timezone from the computer on both Windows and Linux? None of the examples mention a way of getting the computer's time zone. On 27 April 2010 20:57, Marco van de Voort wrote: > In our previous episode, Frank Church said: > > attempt is based on the method

Re: [fpc-pascal] How to convert ISO format string in FreePascal

2010-04-27 Thread Marco van de Voort
In our previous episode, Frank Church said: > attempt is based on the method here, > https://forums.codegear.com/thread.jspa?threadID=16074, but > StrToDateTime in FPC does not use the FormatSettings parameter. Datetime handling has been rewritten since 2.4.0, and this is already merged back to 2.

Re: [fpc-pascal] How to convert ISO format string in FreePascal

2010-04-27 Thread Graeme Geldenhuys
On 27 April 2010 17:43, Frank Church wrote: > I want to convert a time stamp in -mm-dd hh:mm:ss format to a > TDatetime in FPC but can't find but haven't found a way yet. I have written the following for the tiOPF project and us it in our company projects for all date/time values (including

Re: [fpc-pascal] How to convert ISO format string in FreePascal

2010-04-27 Thread Luiz Americo Pereira Camara
Frank Church escreveu: I want to convert a time stamp in -mm-dd hh:mm:ss format to a TDatetime in FPC but can't find but haven't found a way yet. A very simple function i use: function XMLDateTime2DateTime(const XMLDateTime: String): TDateTime; var DateOnly: String; TPos: Integer; begin

Re: [fpc-pascal] How to convert ISO format string in FreePascal

2010-04-27 Thread José Mejuto
Hello FPC-Pascal, Tuesday, April 27, 2010, 5:43:30 PM, you wrote: FC> I switched to using the unixtime value which is also present in the FC> records I am using, but it does not allow for Daylight Savings Time FC> and is currently an hour behind. Is there some way the FreePascal FC> libraries can

[fpc-pascal] How to convert ISO format string in FreePascal

2010-04-27 Thread Frank Church
I want to convert a time stamp in -mm-dd hh:mm:ss format to a TDatetime in FPC but can't find but haven't found a way yet. My attempt is based on the method here, https://forums.codegear.com/thread.jspa?threadID=16074, but StrToDateTime in FPC does not use the FormatSettings parameter. functio