- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jfree.data.time.Year.<init>()
方法的一些代码示例,展示了Year.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Year.<init>()
方法的具体详情如下:
包路径:org.jfree.data.time.Year
类名称:Year
方法名:<init>
[英]Creates a new Year, based on the current system date/time.
[中]根据当前系统日期/时间创建新的一年。
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the year.
*
* @return The year.
*/
public Year getYear() {
return new Year(this.year);
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the year in which the week falls.
*
* @return The year (never {@code null}).
*/
public Year getYear() {
return new Year(this.year);
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the year in which the month falls.
*
* @return The year in which the month falls (as a Year object).
*/
public Year getYear() {
return new Year(this.year);
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the year.
*
* @return The year.
*/
public Year getYear() {
return new Year(this.year);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the year in which the week falls.
*
* @return The year (never <code>null</code>).
*/
public Year getYear() {
return new Year(this.year);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the year in which the month falls.
*
* @return The year in which the month falls (as a Year object).
*/
public Year getYear() {
return new Year(this.year);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the year preceding this one.
*
* @return The year preceding this one (or <code>null</code> if the
* current year is -9999).
*/
public RegularTimePeriod previous() {
if (this.year > Year.MINIMUM_YEAR) {
return new Year(this.year - 1);
}
else {
return null;
}
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the year following this one.
*
* @return The year following this one (or <code>null</code> if the current
* year is 9999).
*/
public RegularTimePeriod next() {
if (this.year < Year.MAXIMUM_YEAR) {
return new Year(this.year + 1);
}
else {
return null;
}
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the year following this one.
*
* @return The year following this one (or {@code null} if the current
* year is 9999).
*/
@Override
public RegularTimePeriod next() {
if (this.year < Year.MAXIMUM_YEAR) {
return new Year(this.year + 1);
}
else {
return null;
}
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the year preceding this one.
*
* @return The year preceding this one (or {@code null} if the
* current year is -9999).
*/
@Override
public RegularTimePeriod previous() {
if (this.year > Year.MINIMUM_YEAR) {
return new Year(this.year - 1);
}
else {
return null;
}
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Parses the string argument as a year.
* <P>
* The string format is YYYY.
*
* @param s a string representing the year.
*
* @return <code>null</code> if the string is not parseable, the year
* otherwise.
*/
public static Year parseYear(String s) {
// parse the string...
int y;
try {
y = Integer.parseInt(s.trim());
}
catch (NumberFormatException e) {
throw new TimePeriodFormatException("Cannot parse string.");
}
// create the year...
try {
return new Year(y);
}
catch (IllegalArgumentException e) {
throw new TimePeriodFormatException("Year outside valid range.");
}
}
代码示例来源:origin: jfree/jfreechart
/**
* Parses the string argument as a year.
* <P>
* The string format is YYYY.
*
* @param s a string representing the year.
*
* @return {@code null} if the string is not parseable, the year
* otherwise.
*/
public static Year parseYear(String s) {
// parse the string...
int y;
try {
y = Integer.parseInt(s.trim());
}
catch (NumberFormatException e) {
throw new TimePeriodFormatException("Cannot parse string.");
}
// create the year...
try {
return new Year(y);
}
catch (IllegalArgumentException e) {
throw new TimePeriodFormatException("Year outside valid range.");
}
}
代码示例来源:origin: jasperreports/jasperreports
series.add(new Year(1976), new Integer(0));
series.add(new Year(1977), new Integer(1));
series.add(new Year(1978), new Integer(0));
series.add(new Year(1979), new Integer(2));
series.add(new Year(1980), new Integer(0));
series.add(new Year(1981), new Integer(1));
series.add(new Year(1982), new Integer(2));
series.add(new Year(1983), new Integer(5));
series.add(new Year(1984), new Integer(21));
series.add(new Year(1985), new Integer(18));
series.add(new Year(1986), new Integer(18));
series.add(new Year(1987), new Integer(25));
series.add(new Year(1988), new Integer(11));
series.add(new Year(1989), new Integer(16));
series.add(new Year(1990), new Integer(23));
series.add(new Year(1991), new Integer(14));
series.add(new Year(1992), new Integer(31));
series.add(new Year(1993), new Integer(38));
series.add(new Year(1994), new Integer(31));
series.add(new Year(1995), new Integer(56));
series.add(new Year(1996), new Integer(45));
series.add(new Year(1997), new Integer(74));
series.add(new Year(1998), new Integer(68));
series.add(new Year(1999), new Integer(98));
series.add(new Year(2000), new Integer(85));
series.add(new Year(2001), new Integer(66));
series.add(new Year(2002), new Integer(71));
series.add(new Year(2003), new Integer(65));
series.add(new Year(2004), new Integer(59));
代码示例来源:origin: ssaring/sportstracker
/**
* Creates the TimePeriod to be displayed in the TimeSeries graph for the
* specified time step.
*
* @param timeType the time range type to be displayed
* @param year the year to be displayed
* @param timeStep the current time step in the graph
* @return the created TimePeriod for the current time step
*/
private RegularTimePeriod createTimePeriodForTimeStep(TimeRangeType timeType, int year, int timeStep) {
switch (timeType) {
case LAST_12_MONTHS:
LocalDate now = LocalDate.now();
int tempMonth = now.getMonthValue() + timeStep - 1;
int tempYear = now.getYear() - 1 + tempMonth / 12;
return new Month(tempMonth % 12 + 1, tempYear);
case MONTHS_OF_YEAR:
return new Month(timeStep + 1, year);
case WEEKS_OF_YEAR:
// Workaround for a JFreeChart problem: use the Year instead
// of Week class for the botton axis, otherwise there will be
// format problems on the axis (the first week is often "52")
int tempWeekNr = timeStep + 1;
return new Year(1900 + tempWeekNr);
case LAST_10_YEARS:
return new Year(year - 9 + timeStep);
default:
throw new IllegalArgumentException("Unknow TimeRangeType!");
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro
t= new Year(new Date(((Number)valx).longValue()));
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport
t= new Year(new Date(((Number)valx).longValue()));
代码示例来源:origin: org.arrahtec/osdq-core
dataset.addOrUpdate(new Year((Date)dcell) , new Double(ncell.toString()));
break;
case 1: //Quarter
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
break;
case(DateTickUnit.YEAR) :
result = calculateDateForPosition(new Year(time,
this.timeZone, this.locale), position);
break;
代码示例来源:origin: org.sakaiproject.sitestats/sitestats-impl
c.set(Calendar.MILLISECOND, 0);
if(org.jfree.data.time.Year.class.equals(periodGrouping)) {
return new org.jfree.data.time.Year(c.getTime());
}else if(org.jfree.data.time.Month.class.equals(periodGrouping)) {
return new org.jfree.data.time.Month(c.getTime());
代码示例来源:origin: jfree/jfreechart
/**
* Corrects the given tick date for the position setting.
*
* @param time the tick date/time.
* @param unit the tick unit.
* @param position the tick position.
*
* @return The adjusted time.
*/
private Date correctTickDateForPosition(Date time, DateTickUnit unit,
DateTickMarkPosition position) {
Date result = time;
if (unit.getUnitType().equals(DateTickUnitType.MONTH)) {
result = calculateDateForPosition(new Month(time, this.timeZone,
this.locale), position);
} else if (unit.getUnitType().equals(DateTickUnitType.YEAR)) {
result = calculateDateForPosition(new Year(time, this.timeZone,
this.locale), position);
}
return result;
}
在尝试 time 的 python 执行时,我发现在一条语句中两次调用 time.time() 时出现奇怪的行为。在语句执行期间获取time.time() 有一个非常小的处理延迟。 例如time.ti
我要疯了。对于我的生活,我无法弄清楚为什么以下代码会导致 Unity 在我按下播放键后立即卡住。这是一个空的项目,脚本附加到一个空的游戏对象。在控制台中,什么也没有出现,甚至没有出现初始的 Debug
我要疯了。对于我的生活,我无法弄清楚为什么以下代码会导致 Unity 在我按下播放键后立即卡住。这是一个空的项目,脚本附加到一个空的游戏对象。在控制台中,什么也没有出现,甚至没有出现初始的 Debug
我不明白为什么下面的结果是一样的。我预计第一个结果是指针地址。 func print(t *time.Time) { fmt.Println(t) // 2009-11-10 23:00:00
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32 Type "help
当我有一个time.Time时: // January, 29th t, _ := time.Parse("2006-01-02", "2016-01-29") 如何获得代表 1 月 31 日的 ti
首先,我意识到不推荐使用 time with time zone。我要使用它是因为我将多个 time with time zone 值与我当前的系统时间进行比较,而不管是哪一天。 IE。用户说每天 0
长期以来,在 Rust 中精确测量时间的标准方法是 time crate 及其 time::precise_time_ns功能。但是,time crate 现在已被弃用,std 库有 std::tim
我正在我学校的一个科学集群上运行我的有限差分程序。该程序使用 openmpi 来并行化代码。 当程序连续运行时,我得到: real 78m40.592s user 78m34.920s s
尽管它们已被弃用并且有比 time 更好的模块(即 timeit),但我想知道这两个函数 time 之间的区别.clock() 和 time.time()。 从后者 (time.time()) 开始,
这个问题在这里已经有了答案: Python's time.clock() vs. time.time() accuracy? (16 个答案) 关闭 6 年前。 我认为两者都衡量时间量?但是他们返回
我正在尝试测试 http 请求处理代码块在我的 Flask Controller 中需要多长时间,这是我使用的示例代码: cancelled = [] t0 = time.time() t1 = ti
运行 python 的计算机时钟(Windows 或 Linux)时会发生什么自动更改并调用 time.time()? 我读到,当时钟手动更改为过去的某个值时,time.time() 的值会变小。 最
我有一个结构可能无法在其字段之一上设置 time.Time 值。测试无效性时,我不能使用 nil 或 0。time.Unix(0,0) 也不相同。我想到了这个: var emptyTime time.
我有一个打算用数据库记录填充的结构,其中一个日期时间列可以为空: type Reminder struct { Id int CreatedAt time.Time
问题陈述:通过匹配其百分比随机执行各种命令。比如执行 CommandA 50% 的时间和 commandB 25% 的时间和 commandC 15% 的时间等等,总百分比应该是 100%。 我的问题
我正在使用 laravel 6。我在同一个应用程序中有类似的 Controller 和类似的 View ,它工作正常。对比之后还是找不到错误。 Facade\Ignition\Exceptions\V
我需要用 ("%m/%d/%Y %H:%M:%S") 格式表示时间,我得到的浮点值是 time.time(). 我已经有了一个 time.time() 形式的值。例如,我已经有一个值,我每 0.3 秒
我正在使用以下方法获取 utc 日期时间: import datetime import time from pytz import timezone now_utc = datetime.datet
我在 Ubuntu 上使用 time.clock 和 time.time 为一段 python 代码计时: clock elapsed time: 8.770 s time elapsed time
我是一名优秀的程序员,十分优秀!