Here you can find the source of getTimeInMillis()
public static long getTimeInMillis()
//package com.java2s; import java.util.Calendar; public class Main { /**/*from ww w . j av a 2 s. c o m*/ * Method returns the current time as [local timezone] milliseconds. * * @return long milliseconds */ public static long getTimeInMillis() { return Calendar.getInstance().getTimeInMillis(); } }