Re: [fpc-pascal] Getting UTC time etc.

2012-07-28 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I know that this was discussed a couple of months ago, but I had difficulty working out what the consensus was. i)Is there an FPC function which will get the raw time from the RTC, which on unix systems will usually be UTC (specifically, without a DST

[fpc-pascal] Getting UTC time etc.

2012-07-27 Thread Mark Morgan Lloyd
I know that this was discussed a couple of months ago, but I had difficulty working out what the consensus was. i) Is there an FPC function which will get the raw time from the RTC, which on unix systems will usually be UTC (specifically, without a DST correction)? ii) Are there functions

Re: [fpc-pascal] getting UTC time

2011-07-11 Thread Mark Morgan Lloyd
Bernd wrote: Is there an easy (or elegant) cross platform way of getting the current time in UTC that works on all platforms? I did some google search and there it seems some people have made themselves some more or less complicated functions for this purpose but they all use either unix and

[fpc-pascal] getting UTC time

2011-07-10 Thread Bernd
Is there an easy (or elegant) cross platform way of getting the current time in UTC that works on all platforms? I did some google search and there it seems some people have made themselves some more or less complicated functions for this purpose but they all use either unix and baseunix or they

Re: [fpc-pascal] getting UTC time

2011-07-10 Thread Martin Schreiber
On Sunday 10 July 2011 21:20:06 Bernd wrote: Is there an easy (or elegant) cross platform way of getting the current time in UTC that works on all platforms? MSEgui has nowutc() in lib/common/kernel/msesys.pas. It calls platformdependent sys_getutctime() which is implemented for Linux and