Repository navigation
Coming from pawn chrono
imshooter edited this page Nov 26, 2026
·
1 revision
Chrono keeps the names, tags, constants and specifier defines of pawn-chrono, so a script compiles as it is, and a script built against pawn-chrono runs on the component.
-
TimeParse and DurationParse return
truewhen they read the text, where pawn-chrono returned0. -
TimeFormat writes in the zone of the server, where pawn-chrono always wrote UTC. Pass
"UTC"to keep the old text, whichISO8601_FULL_UTCneeds. -
DurationFormat clears its array before writing, and writes
1 hourfor exactly an hour, where pawn-chrono wrote60 minutes. pawn-chrono also wrote before the array for a duration of zero. -
DayInHoursis24. pawn-chrono had12, so itsWeekInHours,MonthInHoursandYearInHourswere half of what they are now. -
MonthInMillisecondsis gone, as a month of milliseconds does not fit a cell.
With pawn-chrono:
if (TimeParse(text, ISO8601_DATE, date) == 0) {
}With Chrono:
if (TimeParse(text, ISO8601_DATE, date)) {
}- A zone for every call that reads or writes a date, and SetChronoTimeZone for the server.
- GetTimestampDate, GetTimestampTime, GetTimestampWeekday and MakeTimestamp.
-
AddTimestampMonths, and operators with
Weeks,MonthsandYears. - DurationParseSeconds, weeks and years in DurationParse, and formats for DurationFormat.
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions