本文整理汇总了Java中org.jfree.date.SerialDate.lastDayOfMonth方法的典型用法代码示例。如果您正苦于以下问题:Java SerialDate.lastDayOfMonth方法的具体用法?Java SerialDate.lastDayOfMonth怎么用?Java SerialDate.lastDayOfMonth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.date.SerialDate
的用法示例。
在下文中一共展示了SerialDate.lastDayOfMonth方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the Quarter, evaluated using the
* supplied calendar (which determines the time zone).
*
* @param calendar the calendar.
*
* @return the last millisecond of the Quarter.
*/
public long getLastMillisecond(final Calendar calendar) {
final int month = Quarter.LAST_MONTH_IN_QUARTER[this.quarter];
final int eom = SerialDate.lastDayOfMonth(month, this.year.getYear());
final Day last = new Day(eom, month, this.year.getYear());
return last.getLastMillisecond(calendar);
}
示例2: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the month, evaluated using the supplied
* calendar (which determines the time zone).
*
* @param calendar the calendar.
*
* @return the last millisecond of the month.
*/
public long getLastMillisecond(final Calendar calendar) {
final int eom = SerialDate.lastDayOfMonth(this.month, this.year.getYear());
final Day last = new Day(eom, this.month, this.year.getYear());
return last.getLastMillisecond(calendar);
}
示例3: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the Quarter, evaluated using the
* supplied calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the Quarter.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int month = Quarter.LAST_MONTH_IN_QUARTER[this.quarter];
int eom = SerialDate.lastDayOfMonth(month, this.year);
calendar.set(this.year, month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
// in the following line, we'd rather call calendar.getTimeInMillis()
// to avoid object creation, but that isn't supported in Java 1.3.1
return calendar.getTime().getTime();
}
示例4: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the month, evaluated using the supplied
* calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the month.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int eom = SerialDate.lastDayOfMonth(this.month, this.year);
calendar.set(this.year, this.month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
// in the following line, we'd rather call calendar.getTimeInMillis()
// to avoid object creation, but that isn't supported in Java 1.3.1
return calendar.getTime().getTime();
}
示例5: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the Quarter, evaluated using the
* supplied calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the Quarter.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
@Override
public long getLastMillisecond(Calendar calendar) {
int month = Quarter.LAST_MONTH_IN_QUARTER[this.quarter];
int eom = SerialDate.lastDayOfMonth(month, this.year);
calendar.set(this.year, month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
return calendar.getTimeInMillis();
}
示例6: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the month, evaluated using the supplied
* calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the month.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
@Override
public long getLastMillisecond(Calendar calendar) {
int eom = SerialDate.lastDayOfMonth(this.month, this.year);
calendar.set(this.year, this.month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
return calendar.getTimeInMillis();
}
示例7: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the Quarter, evaluated using the
* supplied calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the Quarter.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int month = Quarter.LAST_MONTH_IN_QUARTER[this.quarter];
int eom = SerialDate.lastDayOfMonth(month, this.year);
calendar.set(this.year, month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
// in the following line, we'd rather call calendar.getTimeInMillis()
// to avoid object creation, but that isn't supported in Java 1.3.1
return calendar.getTime().getTime();
}
示例8: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the month, evaluated using the supplied
* calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the month.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int eom = SerialDate.lastDayOfMonth(this.month, this.year);
calendar.set(this.year, this.month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
// in the following line, we'd rather call calendar.getTimeInMillis()
// to avoid object creation, but that isn't supported in Java 1.3.1
return calendar.getTime().getTime();
}
示例9: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the month, evaluated using the supplied
* calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the month.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int eom = SerialDate.lastDayOfMonth(month, this.year);
calendar.set(this.year, month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
// in the following line, we'd rather call calendar.getTimeInMillis()
// to avoid object creation, but that isn't supported in Java 1.3.1
return calendar.getTime().getTime();
}
示例10: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the Quarter, evaluated using the
* supplied calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the Quarter.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int month = Quarter.LAST_MONTH_IN_QUARTER[this.quarter];
int eom = SerialDate.lastDayOfMonth(month, this.year);
calendar.set(this.year, month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
return calendar.getTimeInMillis();
}
示例11: getLastMillisecond
import org.jfree.date.SerialDate; //导入方法依赖的package包/类
/**
* Returns the last millisecond of the month, evaluated using the supplied
* calendar (which determines the time zone).
*
* @param calendar the calendar (<code>null</code> not permitted).
*
* @return The last millisecond of the month.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long getLastMillisecond(Calendar calendar) {
int eom = SerialDate.lastDayOfMonth(this.month, this.year);
calendar.set(this.year, this.month - 1, eom, 23, 59, 59);
calendar.set(Calendar.MILLISECOND, 999);
return calendar.getTimeInMillis();
}