Skip to content

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[] = "");

Parameters

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.

Returns

The time, or INVALID_TIMESTAMP when it does not fit a Timestamp or there is no such zone.

Remarks

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.

Example

stock Timestamp:RenewMembership(Timestamp:expiry) {
    return expiry + Months:1;
}

Related

Clone this wiki locally