time_value_apply


Description:


[ Version ( since = "3.24" ) ]
public long time_value_apply (long src_time, TimeUnit unit, int value)

Applies the given time value in unit unit to the src_time.

Use negative value to subtract it. The time part is rounded to the beginning of the day.

Parameters:

src_time

a time_t to apply the value to, or -1 to use the current time

unit

a TimeUnit

value

a value to apply

Returns:

src_time modified by the given parameters as date, with the time part being beginning of the day.


Namespace: Camel
Package: camel-1.2