public class CurrentMacroCalculation extends Object implements MacroCalculationStrategies
Constructor and Description |
---|
CurrentMacroCalculation() |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getDateTime(org.joda.time.DateTime dateTime,
TimeGrain timeGrain)
Get the DateTime for the macro given the DateTime to base from and the timeGrain to determine how far to move.
|
public org.joda.time.DateTime getDateTime(org.joda.time.DateTime dateTime, TimeGrain timeGrain)
MacroCalculationStrategies
getDateTime
in interface MacroCalculationStrategies
dateTime
- Base instanttimeGrain
- Grain to round toCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.