Skip to content

Releases: ccpgames/ccptools

Version 1.2.0

22 May 13:35
6f2206d
Compare
Choose a tag to compare

Version 1.2.0 - "Instance" support

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

Version 1.1.0

08 Apr 11:46
8ce6e65
Compare
Choose a tag to compare

Version 1.1.0 - Enum Extras

[1.1.0] - 2024-04-08

Added

  • a new enum_eval method that turns any reasonable value into an instance
    of the supplied Enum class (i.e. string names or ints or whatever).
  • a new enum base class, EnumEx that extends enum.Enum by adding a
    from_any class method that uses enum_eval to initialize a new instance
    of whatever class extends EnumEx from any sensible value
  • the new EnumEx class to the base ccptools.structs import

Version 1.0.0

05 Apr 11:37
Compare
Choose a tag to compare

Version 1.0.0 - Ready for the Wild

  • Smooshed datetimeutils and typeutils into a new package called ccptools

Version 1.0.0-rc.2

04 Apr 15:32
Compare
Choose a tag to compare
Version 1.0.0-rc.2 Pre-release
Pre-release

Version 1.0.0-rc.2 - Ready for the Wild...?

  • Let's see if this works!
  • Github Actions failed :P

Version 1.0.0-rc.1

04 Apr 15:20
Compare
Choose a tag to compare
Version 1.0.0-rc.1 Pre-release
Pre-release

Version 1.0.0-rc.1 - Ready for the Wild...?

  • Let's see if this works!