getCurrentTime
function getCurrentTime: integer;
Returns the current time in seconds since midnight 1.1.1970. The returned value (the number of seconds) can be used as argument to call functions such as getMonth or getHour.
var time: integer;
text: string;
begin
time := getCurrentTime;
text := 'Current time is ' + getHour(time);
text := text + ':'+ getMinute(time);
text := text + ':' + getSecond(time);
drawText(text, 0, 0);
repaint;
delay(1000); { wait 1 second before MIDlet terminates }
end.
See also: getYear, getMonth, getDay, getHour, getMinute, getSecond, getWeekDay, getYearDay