Home | Previous Page | Next Page   Working With Informix Types > INTERVAL Data Type >

The IntervalYM Class

The com.informix.lang.IntervalYM class allows you to manipulate year-month intervals.

Using IntervalYM Constructors

The default constructor is defined as follows:

public IntervalYM() throws SQLException

Use this second version of the constructor to display localized error messages if an exception is thrown:

public IntervalYM(Connection conn) throws SQLException

Use the following constructors to create year-month intervals from specific input values:

Using IntervalYM Methods

The following methods allow you to manipulate year-month intervals. (You can also use the Interval methods, described previously.) Some of the tasks you can perform using IntervalYM methods include the following:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]