You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, the T is easy enough. I don't like the '-' in filenames but that should not stop them being used (we discussed this on IRC briefly) so %FT%F is ok with me. The ms or serial is the more problematic issue. Do you have any ideas? I suppose getRealTime() can be appended as well (or some division of... maybe %1000 for a 'serial number' in the range 0-999 (I doubt many computers will be able to take 999 screenshots a second)?
By "serial" I meant screanshot_foo.png, screenshot_foo-1.png, etc --- like the player saving code does. Dashes should not be an issue at all. In ISO 8601 format the miliseconds are appended seperated by a dot. It could be a colon instead if dumb file managers cause issues though. Milisecond resolution should be plenty, although something inside me prefers the serial version because you probably could take two screenshots in a millisecond and it should still work.
3 commit comments
ShadowNinja commentedon Mar 27, 2015
This should include miliseconds or a serial value (imagine trying to grab a bunch of shots of TNT going off hoping for a good one).
I'd also prefer if this used ISO 8601 format (
"%FT%T"
without miliseconds).Zeno- commentedon Mar 28, 2015
Well, the T is easy enough. I don't like the '-' in filenames but that should not stop them being used (we discussed this on IRC briefly) so %FT%F is ok with me. The ms or serial is the more problematic issue. Do you have any ideas? I suppose getRealTime() can be appended as well (or some division of... maybe %1000 for a 'serial number' in the range 0-999 (I doubt many computers will be able to take 999 screenshots a second)?
ShadowNinja commentedon Mar 31, 2015
By "serial" I meant screanshot_foo.png, screenshot_foo-1.png, etc --- like the player saving code does. Dashes should not be an issue at all. In ISO 8601 format the miliseconds are appended seperated by a dot. It could be a colon instead if dumb file managers cause issues though. Milisecond resolution should be plenty, although something inside me prefers the serial version because you probably could take two screenshots in a millisecond and it should still work.