title: Is this the right format for String format in java comparing from Objective C?
body: <p>I am converting a code from Objective C to java for Android and I can't find an equivalence to this line of code.</p>
  
  <p>In Objective C I have this:</p>
  
  <pre><code>[NSString stringWithFormat:@"%.0f",[[NSDate date] timeIntervalSince1970] * 1000]
  </code></pre>
  
  <p>In java I am trying to do this:</p>
  
  <pre><code>String.format(Locale.getDefault(), "%.0f", System.currentTimeMillis())
  </code></pre>
  
  <p>but I get a warning from Android studio that says:</p>
  
  <blockquote>
    <p>Argument type 'long' does not match the type of the format specifier
    '%.0f'</p>
  </blockquote>
  
  <p>Is there anything that Im doing wrong?</p>
  
  <p>Can I ignore this warning and the line will still work? or I need another format String?</p>
  
  <p>Thanks in advance</p>