Repository navigation
Releases
Chrono 0.2.0
Chrono 0.2.0 runs on Linux, and TimeParse reads every specifier by itself.
What changes
- A Linux build. It is built on Ubuntu 20.04, needs glibc 2.25 or later, and passes its tests on open.mp for Ubuntu 20.04, Debian 12 and Ubuntu 24.04, which GitHub Actions runs at every push.
TimeParsereads every specifierTimeFormatwrites, with no help fromstd::chrono::parse: the day of the year, the ISO week, the weeks from Sunday and from Monday,%c,%x,%X,%r,%C, the abbreviation of a zone, and a width before a specifier, as%4Y. A weekday read beside a date must be the weekday of that date.- With no
chrono.time_zone, a machine whose zone cannot be told keeps time in UTC with a warning.
Installation
Unpack the zip of your system into the folder of the server: components/Chrono.dll or components/Chrono.so, and qawno/include/chrono.inc. Remove chrono from pawn.legacy_plugins. Both builds are 32 bit and tested with open.mp 1.6.7.
See the wiki for the guides and a page for every native.
Licenses
Chrono is under the MIT License. The names, tags and constants of chrono.inc come from pawn-chrono, under its own MIT License, which is in the zips.
Chrono 0.1.0
The first release of Chrono, an open.mp component for dates and times that takes the place of pawn-chrono, with the same names and faster in every call.
Installation
Unpack the zip into the folder of the server: components/Chrono.dll and qawno/include/chrono.inc, and remove chrono from pawn.legacy_plugins. Then name the time zone of the server in config.json:
"chrono": {
"time_zone": "Europe/London"
}Windows only, 32 bit, tested with open.mp 1.6.7. See the wiki for the guides and a page for every native.
Licenses
Chrono is under the MIT License. The names, tags and constants of chrono.inc come from pawn-chrono, under its own MIT License, which is in the zip.