Izwzyzx's Common Library for Haxe
Find a file
2026-02-07 16:42:48 -06:00
haxelib.json Added boolean functions 2026-02-07 16:42:48 -06:00
IzzComLib.hx Added boolean functions 2026-02-07 16:42:48 -06:00
README.md Added boolean functions 2026-02-07 16:42:48 -06:00

IzzComLib

Common library for Izwzyzx's Haxe projects.

Functions

  • randInt(x, y) - Returns a random integer between x and y, both inclusive
  • randIntExclude(x, y, exclude) - Returns a random integer that doesn't return values that match the given exclude array
  • parseBool(str) - Parses a string value of "true" or "false" into a proper bool. Returns null otherwise.
  • toggle(bool) - Reverses a boolean variable.
  • timestamp(?seconds) - Returns the current time in 24hr notation, with left-padding (HH:MM)
    • If optional argument seconds is true, it will return HH:MM:SS
  • datestamp() - Returns the current date, formatted to ISO 8601 (YYYY-MM-DD)
  • printDay() - Returns the name of the current day of the week
  • printMonth() - Returns the name of the current month
  • printDate() - Returns the current day of the month, with left padding