[fpc-pascal] getting UTC time

Bernd prof7bit at googlemail.com
Sun Jul 10 21:20:06 CEST 2011


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 use windows.

There must be a simple function in the RTL to get the current time (in
UTC) that works on all platforms, I am sure I must be missing
something, such a function surely exists in a modern runtime library
in the year 2011, doesn't it?

Bernd



More information about the fpc-pascal mailing list