getSecond


function getSecond(time: integer): integer;

Returns the second for the given time (time is represented in seconds since midnight 1.1.1970 and can be retrieved by calling getCurrentTime function). The returned value is between 0 and 59.

  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: getCurrentTime, getHour, getMinute