Repository navigation
Home
imshooter edited this page Nov 26, 2026
·
2 revisions
Note
Chrono is experimental and already runs in production. Its natives may still change from one version to the next. It was made with Claude Opus 5.5, a model by Anthropic.
Chrono is an open.mp component for dates and times. It keeps timestamps and durations apart with a tag for each unit, writes and reads them in any time zone, and counts months and years as the calendar does. It takes the place of the pawn-chrono plugin with the same names, and every call is faster.
This wiki describes version 0.2.0.
- Installation: the files of a release and the first start.
- Configuration: the time zone of the server and the zone of a call.
- Timestamps: the tags, the operators and the constants.
- Times: writing a time as text and reading it back.
- Durations: reading durations from text and writing them.
- Calendar: dates, days of the week, months and years.
- Coming from pawn-chrono: what changes for a script written for the plugin.
- Performance: what each call costs, beside pawn-chrono.
- Functions: every native, by subject.
-
Specifiers: what each
%writes and reads.
Tells a player when their membership ends.
#include <open.mp>
#include <chrono>
public OnPlayerConnect(playerid) {
new const
Timestamp:expiry = Now() + Days:30
;
new
date[32],
left[48]
;
TimeFormat(expiry, "%d %B %Y at %H:%M", date);
DurationFormat(expiry - Now(), left);
SendClientMessage(playerid, -1, "Your membership ends on %s, in %s.", date, left);
return 1;
}Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions