org.joda.time.LocalDateTime.plus()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中org.joda.time.LocalDateTime.plus()方法的一些代码示例,展示了LocalDateTime.plus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalDateTime.plus()方法的具体详情如下:
包路径:org.joda.time.LocalDateTime
类名称:LocalDateTime
方法名:plus

LocalDateTime.plus介绍

[英]Returns a copy of this datetime with the specified duration added.

If the amount is zero or null, then this is returned.
[中]返回添加了指定持续时间的此datetime的副本。
如果金额为零或空,则返回this

代码示例

代码示例来源:origin: com.hp.autonomy.hod/java-hod-client

/**
 * Creates a new PollingJobStatusRunnable using the given token proxy
 * @param tokenProxy The token proxy used to submit the job
 * @param jobId The ID of the job
 * @param callback The callback that will be called with the result
 * @param executorService The executor service responsible for running the runnable
 */
public PollingJobStatusRunnable(final TokenProxy<?, TokenType.Simple> tokenProxy, final Duration timeout, final JobId jobId, final HodJobCallback<T> callback, final ScheduledExecutorService executorService, final JobService<? extends JobStatus<T>> jobService) {
  this.tokenProxy = tokenProxy;
  this.jobId = jobId;
  this.callback = callback;
  this.executorService = executorService;
  this.jobService = jobService;
  this.timeout = timeout != null ? LocalDateTime.now().plus(timeout) : null;
}

代码示例来源:origin: com.effektif/effektif-workflow-api

LocalDateTime time = base.plus(period);

代码示例来源:origin: effektif/effektif

LocalDateTime time = base.plus(period);

相关文章