Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.2.0 - "Instance" support #2

Merged
merged 1 commit into from
May 22, 2024

Conversation

CCP-Zeulix
Copy link
Contributor

Added

  • The logging package to the ccptools.structs._base
  • Methods for casting between Datetime and timestamp (number of seconds since UNIX Epoch as a float) that work even on Windows when the built in datetime.timestamp() and datetime.fromtimestamp() methods fail for negative values and more
  • Methods for casting between Datetime and "instance" (number of milliseconds since UNIX Epoch as an int)

Changed

  • How any_to_datetime handles "ambiguous" numeric values when deciding between "timestamp", "instance" and "filetime"
  • How any_to_datetime handles strings such that if a given string is a simple int or float, it's cast and treated as such

Removed

  • The utc argument from any_to_datetime

### Added

- The `logging` package to the `ccptools.structs._base`
- Methods for casting between Datetime and timestamp (number of seconds since
  UNIX Epoch as a float) that work even on Windows when the built in
  `datetime.timestamp()` and `datetime.fromtimestamp()` methods fail for
  negative values and more
- Methods for casting between Datetime and "instance" (number of milliseconds
  since UNIX Epoch as an int)

### Changed

- How `any_to_datetime` handles "ambiguous" numeric values when deciding between
  "timestamp", "instance" and "filetime"
- How `any_to_datetime` handles strings such that if a given string is a simple
  int or float, it's cast and treated as such

### Removed

- The `utc` argument from `any_to_datetime`
@CCP-Zeulix CCP-Zeulix merged commit 6f2206d into main May 22, 2024
10 checks passed
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.

1 participant