[fpc-devel] get/put in fpc
Sven Barth
pascaldragon at googlemail.com
Sat Oct 10 21:37:38 CEST 2015
On 10.10.2015 19:49, Schneider wrote:
> Sven:
>
>>> https://alum.mit.edu/www/toms/software.html
>>
>> I can't access neither that link nor the other. I get redirected to
>> https://schneider.ncifcrf.gov/software.html
>
> The redirection is intentional. They keep changing the location of my
> website so I set up a permanent link through MIT. It should always
> point to the current location of the website.
I'm not complaining about the redirection itself ;)
>> and there I get an error
>> (don't know which one, I'm on mobile right now...).
> ...
>>> https://alum.mit.edu/www/toms/delila/timegpc.html
>> I'll tell you once I'm able to access the website ;)
>
> There are certificate issues on my website here. I'm in communication
> with the sysadmins to hopefully fix it them ...
At least on my desktop it works. Don't know if your sysadmins fixed it
by now or if it's just my mobile browser that's buggy... -.-
And to answer the problem at hand: right now we don't support the
TimeStamp type or the GetTimeStamp function. In FPC we have the Delphi
equivalent which is the Now function which returns a TDateTime which in
turn is a Double (a floating point type with double precision). In
addition there is the FormatDateTime function that allows you to convert
a TDateTime to a string with a formatting of your choosing. However both
functions require unit SysUtils, but in ISO mode loading units is
disabled... (though you can work around that by telling the compiler to
load a unit using a command line switch)
The Extended Pascal functions and the type shouldn't be that hard to add
however (though we'd need to add an ExtISO mode to do it by the book ;)
- or we could just add them to the System unit, then they are available
for all modes, though that opens its own can of worms :/ ).
Regards,
Sven
More information about the fpc-devel
mailing list