If you want to use a platform neutral way of obtaining the date/time decoded components (i.e.: year, month, day, hour, min, secs, msec) of the present instant (PC/system time), you would call DecodeTime(Time,Hour, Min, Sec, MSec);

But this is a shame for performance because the 'Time' function already uses EncodeTime(Hour, Min, Sec, MSec) to assemble the TDateTime value from individual values obtained from the platform specific API call (Win32: GetLocalTime).

So my request is for a new set of platform-independent functions e.g.: