Home > Mobile >  System.currenttimemillis ()
System.currenttimemillis ()

Time:03-24

Use time to file naming (screenshot or log files), but I found that sometimes the file name is 1970 _01... , I doubt System. CurrentTimeMillis () get a 0, what the hell is it possible to System. CurrentTimeMillis () will be zero?

CodePudding user response:

You first a print System. CurrentTimeMillis () the value of bai, perhaps is the time to transform your name out of the wrong

CodePudding user response:

Just a few lines of code, the time string formatting output, and most of the time is normal, just occasionally will trigger this case, I can't reappear,
  • Related