当前位置: 首页>>代码示例>>Java>>正文


Java SerialDate.lastDayOfMonth方法代码示例

本文整理汇总了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);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:Quarter.java

示例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);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Month.java

示例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();
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:21,代码来源:Quarter.java

示例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();
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:Month.java

示例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();
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:20,代码来源:Quarter.java

示例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();
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:19,代码来源:Month.java

示例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();
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:21,代码来源:Quarter.java

示例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();
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:20,代码来源:Month.java

示例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();
}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:20,代码来源:Month.java

示例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();
}
 
开发者ID:pablopatarca,项目名称:proyecto-teoria-control-utn-frro,代码行数:19,代码来源:Quarter.java

示例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();
}
 
开发者ID:pablopatarca,项目名称:proyecto-teoria-control-utn-frro,代码行数:18,代码来源:Month.java


注:本文中的org.jfree.date.SerialDate.lastDayOfMonth方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。