Uses of Class
org.silverpeas.core.date.TimeUnit
-
Packages that use TimeUnit Package Description org.silverpeas.core.calendar Provides the Calendar and Event Planning Engine.org.silverpeas.core.date Provides the classes and the interface to manage dates and times in a more efficient way for Silverpeas.org.silverpeas.core.reminder org.silverpeas.core.util Provides miscellaneous utility classes.org.silverpeas.core.util.time Provides utility classes to handle the time.org.silverpeas.core.webapi.calendar org.silverpeas.core.webapi.reminder -
-
Uses of TimeUnit in org.silverpeas.core.calendar
Methods in org.silverpeas.core.calendar that return TimeUnit Modifier and Type Method Description TimeUnit
RecurrencePeriod. getUnit()
Gets the unit of time of the interval.Methods in org.silverpeas.core.calendar with parameters of type TimeUnit Modifier and Type Method Description static Recurrence
Recurrence. every(int frequencyValue, TimeUnit frequencyUnit)
Creates a new recurrence from the specified frequency.static Recurrence
Recurrence. every(TimeUnit frequencyUnit)
Creates a new recurrence from the specified frequency.static RecurrencePeriod
RecurrencePeriod. every(int interval, TimeUnit unit)
Creates a recurrence period from the specified frequency statement that is expressed by a regular interval in a given unit of time. -
Uses of TimeUnit in org.silverpeas.core.date
Methods in org.silverpeas.core.date that return TimeUnit Modifier and Type Method Description static TimeUnit
TimeUnit. valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeUnit[]
TimeUnit. values()
Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of TimeUnit in org.silverpeas.core.reminder
Methods in org.silverpeas.core.reminder that return TimeUnit Modifier and Type Method Description TimeUnit
DurationReminder. getTimeUnit()
Gets the unit of time the duration is expressed.Methods in org.silverpeas.core.reminder that return types with arguments of type TimeUnit Modifier and Type Method Description static org.apache.commons.lang3.tuple.Pair<Integer,TimeUnit>
ReminderSettings. getDefaultReminder()
Gets the default reminder to set.static Stream<org.apache.commons.lang3.tuple.Pair<Integer,TimeUnit>>
ReminderSettings. getPossibleReminders()
Gets the list of possible reminders.Methods in org.silverpeas.core.reminder with parameters of type TimeUnit Modifier and Type Method Description DurationReminder
DurationReminder. triggerBefore(int duration, TimeUnit timeUnit, String temporalProperty)
Triggers this reminder at the specified duration before the temporal value of the specified property of the related contribution.DurationReminder
Reminder.ReminderBuilder. triggerBefore(int duration, TimeUnit timeUnit, String temporalProperty, ReminderProcessName processName)
Triggers this reminder the specified duration before the given property of the contribution. -
Uses of TimeUnit in org.silverpeas.core.util
Methods in org.silverpeas.core.util with parameters of type TimeUnit Modifier and Type Method Description static BigDecimal
UnitUtil. convertAndRoundTo(Duration duration, TimeUnit to)
static long
UnitUtil. convertTo(long millisecondValue, TimeUnit to)
static long
UnitUtil. convertTo(long value, TimeUnit from, TimeUnit to)
static BigDecimal
UnitUtil. convertTo(BigDecimal millisecondValue, TimeUnit to)
static BigDecimal
UnitUtil. convertTo(BigDecimal value, TimeUnit from, TimeUnit to)
static String
UnitUtil. formatTime(long time, TimeUnit from)
Get the time with the suitable unitstatic String
UnitUtil. formatTime(BigDecimal time, TimeUnit from)
Get the time with the suitable unitstatic String
UnitUtil. formatValue(long millisecondValue, TimeUnit to)
static String
UnitUtil. formatValue(long value, TimeUnit from, TimeUnit to)
static String
UnitUtil. formatValue(BigDecimal millisecondValue, TimeUnit to)
static String
UnitUtil. formatValue(BigDecimal value, TimeUnit from, TimeUnit to)
static Duration
UnitUtil. getDuration(long time, TimeUnit from)
Get the time datastatic Duration
UnitUtil. getDuration(BigDecimal time, TimeUnit from)
Get the time data -
Uses of TimeUnit in org.silverpeas.core.util.time
Methods in org.silverpeas.core.util.time that return TimeUnit Modifier and Type Method Description TimeUnit
Duration. getBestUnit()
Gets the best unit (for display as example).Methods in org.silverpeas.core.util.time with parameters of type TimeUnit Modifier and Type Method Description static BigDecimal
Duration. convertTo(BigDecimal value, TimeUnit from, TimeUnit to)
String
Duration. getFormattedValue(TimeUnit to)
String
Duration. getFormattedValueOnly(TimeUnit to)
BigDecimal
Duration. getRoundedTimeConverted(TimeUnit to)
Gets the time converted to desired unit.BigDecimal
Duration. getTimeConverted(TimeUnit to)
Gets the time converted to desired unit. -
Uses of TimeUnit in org.silverpeas.core.webapi.calendar
Methods in org.silverpeas.core.webapi.calendar that return TimeUnit Modifier and Type Method Description TimeUnit
CalendarEventRecurrenceEntity.FrequencyEntity. getTimeUnit()
Methods in org.silverpeas.core.webapi.calendar with parameters of type TimeUnit Modifier and Type Method Description void
CalendarEventRecurrenceEntity.FrequencyEntity. setTimeUnit(TimeUnit timeUnit)
-
Uses of TimeUnit in org.silverpeas.core.webapi.reminder
Methods in org.silverpeas.core.webapi.reminder that return TimeUnit Modifier and Type Method Description TimeUnit
ReminderEntity. getTimeUnit()
Methods in org.silverpeas.core.webapi.reminder with parameters of type TimeUnit Modifier and Type Method Description void
ReminderEntity. setTimeUnit(TimeUnit timeUnit)
-