Java Code Examples for org.apache.commons.lang3.time.DateUtils#setSeconds()
The following examples show how to use
org.apache.commons.lang3.time.DateUtils#setSeconds() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DateUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 设置秒, 0-59. */ public static Date setSeconds(@NotNull final Date date, int amount) { return DateUtils.setSeconds(date, amount); }
Example 2
Source File: DateUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 设置秒, 0-59. */ public static Date setSeconds(@NotNull final Date date, int amount) { return DateUtils.setSeconds(date, amount); }
Example 3
Source File: DateUtil.java From j360-dubbo-app-all with Apache License 2.0 | 4 votes |
/** * 设置秒, 0-59. */ public static Date setSeconds(@NotNull final Date date, int amount) { return DateUtils.setSeconds(date, amount); }
Example 4
Source File: TimePicker.java From dsworkbench with Apache License 2.0 | 4 votes |
public Date getTime() { Date d = new GregorianCalendar(0, 0, 0, pHour, pMinute).getTime(); d = DateUtils.setSeconds(d, 0); d = DateUtils.setMilliseconds(d, 0); return d; }