Added getTime function to return millisecond since 1970, like Date