Skip to content

Fixed etime parsing issue#1

Open
jbot-the-dev wants to merge 1 commit into
pixel-ports:masterfrom
jbot-the-dev:master
Open

Fixed etime parsing issue#1
jbot-the-dev wants to merge 1 commit into
pixel-ports:masterfrom
jbot-the-dev:master

Conversation

@jbot-the-dev

Copy link
Copy Markdown
  • datetime.strptime %M%S does not work for etime.
  • The etime format is MMMSS, with M being minutes and S being seconds, and without any zero left-padding.
  • %M%S only works for a maximum of 59 minutes and 59 seconds.
  • Single digits were being skipped, as were any values greater than 5959.
  • Two digits were being parsed as MS, where they should be SS.
  • Three digits were being parsed as MMS, unless MM > 59, then it would parse as MSS.
  • Parsing is actually faster now, since datetime is not being used.

- datetime.strptime %M%S does not work for etime.
- The etime format is MMMSS, with M being minutes and S being seconds, and without any zero left-padding.
- %M%S only works for a maximum of 59 minutes and 59 seconds.
- Single digits were being skipped, as were any values greater than 5959.
- Two digits were being parsed as MS, where they should be SS.
- Three digits were being parsed as MMS, unless MM > 59, then it would parse as MSS.
- Parsing is actually faster now, since datetime is not being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants