number of months
The <number of months> inspectors provide tools for dealing and calculating with number-of-month types, which are similar to integers, but wih yearly roll-over.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Creation
Subtracts two months, returning a positive number of months. If the first month is earlier than the second, it assumes the year has rolled over.Example: december - current month - Returns the number of months left until december. If the current month is April, it returns 8 months.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
Casts
Operators
Multiply a number of months by an integer, producing a new number of months. This is a typical technique to create a value of this type.Example: (July-current month) < 2*month - Returns True
when the current date is between June and July.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |