What does this mean? J2ME - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

What does this mean? J2ME

Hi there i am new to this and have a piece of code on a stopwatch and there's this part which i don't understand:
[code]
public void paint(Graphics g)
{
if(!reset)
{
g.setColor(0xffffff);
g.fillRect(0, 0, width, height);
g.setColor(0);
g.setFont(defaultFont);
long temp = currentTime - startTime;
hh = temp / 0x36ee80L;
mm = (temp - hh * 3600L * 1000L) / 60000L;
ss = (temp - hh * 3600L * 1000L - mm * 60L * 1000L) / 1000L;
ii = (temp % 1000L) / 10L;
if(hh < 10L)
hhStr = "0" + hh;
else
hhStr = String.valueOf(hh);
if(mm < 10L)
mmStr = "0" + mm;
else
mmStr = String.valueOf(mm);
if(ss < 10L)
ssStr = "0" + ss;
else
ssStr = String.valueOf(ss);
if(ii < 10L)
iiStr = "0" + ii;
else
iiStr = String.valueOf(ii);
str = hhStr + ":" + mmStr + ":" + ssStr + ":" + iiStr;
g.drawString(str, xStr, yStr, 65);
} else
{
reset = false;
g.setColor(0xffffff);
g.fillRect(0, 0, width, height);
g.setColor(0);
g.setFont(defaultFont);
g.drawString("00:00:00:00", xStr, yStr, 65);
}
}
[/code]

what does this part mean?
[code] hh = temp / 0x36ee80L;
mm = (temp - hh * 3600L * 1000L) / 60000L;
ss = (temp - hh * 3600L * 1000L - mm * 60L * 1000L) / 1000L;
ii = (temp % 1000L) / 10L;[/code]
-0x36ee80L;
-3600L
-1000L
-60L
-10L

please help
Sign In or Register to comment.