Izwzyzx's Common Library for Haxe
- Haxe 100%
| haxelib.json | ||
| IzzComLib.hx | ||
| README.md | ||
IzzComLib
Common library for Izwzyzx's Haxe projects.
Functions
randInt(x, y)- Returns a random integer between x and y, both inclusiverandIntExclude(x, y, exclude)- Returns a random integer that doesn't return values that match the givenexcludearrayparseBool(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
secondsis true, it will return HH:MM:SS
- If optional argument
datestamp()- Returns the current date, formatted to ISO 8601 (YYYY-MM-DD)printDay()- Returns the name of the current day of the weekprintMonth()- Returns the name of the current monthprintDate()- Returns the current day of the month, with left padding