Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

feat: Add strptime and strftime to datetime classes #101

Conversation

Christopher-Chianelli
Copy link
Collaborator

  • strftime and strptime easily map to DateTimeFormatterBuilder, although with a different syntax.

  • strftime and strptime are implementation dependent, yielding different results on different operating systems and locale definitions.

  • The JVM locale is set to the Python's locale on startup

- strftime and strptime easily map to DateTimeFormatterBuilder,
  although with a different syntax.

- strftime and strptime are implementation dependent, yielding
  different results on different operating systems and locale
  definitions.

- The JVM locale is set to the Python's locale on startup
@triceo
Copy link
Contributor

triceo commented Jul 1, 2024

Good to merge when green.

@Christopher-Chianelli
Copy link
Collaborator Author

Fixes #103

@triceo triceo linked an issue Jul 2, 2024 that may be closed by this pull request
Need to disable the full text weekday and month tests,
since Java's C Locale defines the full text weekday and
month for the C locale as the short text weekday and month.
Copy link

sonarcloud bot commented Jul 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
72.7% Coverage on New Code (required ≥ 75%)

See analysis details on SonarCloud

@Christopher-Chianelli
Copy link
Collaborator Author

Coverage cannot really be improved due to JVM C's locale differences with Python's C's locale (which are commented in the tests).

@Christopher-Chianelli Christopher-Chianelli merged commit 81bbd40 into TimefoldAI:main Jul 2, 2024
7 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python: hello-world / JavaException when using DEBUG log level
2 participants