Skip to content

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.

What changes

  • TimeParse and DurationParse return true when they read the text, where pawn-chrono returned 0.
  • TimeFormat writes in the zone of the server, where pawn-chrono always wrote UTC. Pass "UTC" to keep the old text, which ISO8601_FULL_UTC needs.
  • DurationFormat clears its array before writing, and writes 1 hour for exactly an hour, where pawn-chrono wrote 60 minutes. pawn-chrono also wrote before the array for a duration of zero.
  • DayInHours is 24. pawn-chrono had 12, so its WeekInHours, MonthInHours and YearInHours were half of what they are now.
  • MonthInMilliseconds is 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)) {
}

What is new

Clone this wiki locally