Repository navigation
AddTimestampMonths
imshooter edited this page Nov 26, 2026
·
1 revision
Move a time by months of the calendar.
native Timestamp:AddTimestampMonths(Timestamp:timestamp, months, const zone[] = "");| Parameter | Description |
|---|---|
Timestamp:timestamp |
The time. |
months |
How many months, below zero to go back. |
const zone[] |
The time zone, as "UTC", or the zone of the server when left out. |
The time, or INVALID_TIMESTAMP when it does not fit a Timestamp or there is no such zone.
The day of the month and the time of day are kept. A day the month does not have becomes its last, so January 31st and one month is the last day of February. The operators with Months and Years call it with the zone of the server.
stock Timestamp:RenewMembership(Timestamp:expiry) {
return expiry + Months:1;
}- MakeTimestamp: The time of a date.
- GetTimestampDate: The date of a time.
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions