[fpc-pascal] Timezone information in a dataset datetime field?- updated

Krzysztof dibo20 at wp.pl
Fri Jul 29 22:26:31 CEST 2011


I notify that synapse have some tools for timezone in synautil unit like:

{:Return your timezone bias from UTC time in minutes.}
function TimeZoneBias: integer;

{:Return your timezone bias from UTC time in string representation like
"+0200".}
function TimeZone: string;

I don't know that they are cross platform. So they are some ways to get time
offset but anyone know how to get "city"? OS like ubuntu or windows ask user
for time zone in installation process, so it could be possible to get this
value by calling some enviromnent variable?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110729/ea878851/attachment.html>


More information about the fpc-pascal mailing list