Excuse me,
I don't know very well differences between utc time and system time.
Can you explain me, please?
Thanks.
Palmis
UTC is (more or less) the same as GMT, meaning it is the time at the
Greenwich Meridian, which is in England. If you're for example in
Europe, your local time will be 1-2 hours (depending on summer or winter
time) different from UTC.
Your system time is just the time to which your computer's hardware clock
is set. This could be anything, it could even me completely wrong.
Usually however, it is set to either your local time, or UTC.
Normally, the operating system compensates the hardware clock setting, so
that it (the OS) always shows your local time.
System.currentTimeMillis() is indeed what you need. It may help if you
explain why you think it is wrong, and what you need it for.