Uses of Class
net.pricefx.common.util.CalendarUtil.TimePeriod
Packages that use CalendarUtil.TimePeriod
Package
Description
Date and time-period helpers behind the Analytics calendar.
Formula engine interfaces exposed to Groovy logics.
-
Uses of CalendarUtil.TimePeriod in net.pricefx.common.util
Methods in net.pricefx.common.util that return CalendarUtil.TimePeriodModifier and TypeMethodDescriptionReturns a new time period moved by the given number of periods.CalendarUtil.TimePeriod.getEndPeriod()Returns the last period of the range as a single period.CalendarUtil.TimePeriod.getStartPeriod()Returns the first period of the range as a single period.CalendarUtil.getTimePeriod(String periodAsString) Returns the time period for a period name, such as2026-Q1.CalendarUtil.getTimePeriodByDate(String dateAsString, String unitAsString) Returns the single period of the given unit that contains the given date.CalendarUtil.newTimePeriod(String startDateAsString, String unitAsString) Returns the single period of the given unit that contains the given date.CalendarUtil.newTimePeriod(String startDateAsString, String endDateAsString, String unitAsString) Creates a range of periods of the given unit, from the period that contains the start date to the period that contains the end date.CalendarUtil.parseTimePeriod(String period) Returns the time period for a period name, such as2026-Q1.Methods in net.pricefx.common.util that return types with arguments of type CalendarUtil.TimePeriodModifier and TypeMethodDescriptionCalendarUtil.getTimePeriods(String startPeriodAsString, String endPeriodAsString, String unitAsString) Returns the periods of the given unit, in date order, from the start period to the end period.CalendarUtil.getTimePeriods(Date startDate, Date endDate, CalendarUtil.TimeUnit unit) Returns the periods of the given unit, in date order, starting with the period that containsstartDate.Methods in net.pricefx.common.util with parameters of type CalendarUtil.TimePeriodModifier and TypeMethodDescriptionCalendarUtil.getTimePeriodName(CalendarUtil.TimePeriod period) Returns the name of a time period, for example"2026-Q1".Constructors in net.pricefx.common.util with parameters of type CalendarUtil.TimePeriodModifierConstructorDescriptionTimePeriod(CalendarUtil.TimePeriod startPeriod, CalendarUtil.TimePeriod endPeriod, CalendarUtil.TimeUnit unit) Creates a range from the start ofstartPeriodto the end ofendPeriod, in the given unit. -
Uses of CalendarUtil.TimePeriod in net.pricefx.formulaengine
Methods in net.pricefx.formulaengine that return CalendarUtil.TimePeriodModifier and TypeMethodDescriptionDatamartContext.Calendar.getTimePeriod(String periodAsString) Returns the TimePeriod object matching its string representation.DatamartContext.Calendar.getTimePeriodByDate(String dateAsString, String unitAsString) Parses a date, as well as a named TimeUnit, resulting in a TimePeriod with that unit that encompasses the given date.Methods in net.pricefx.formulaengine that return types with arguments of type CalendarUtil.TimePeriodModifier and TypeMethodDescriptionDatamartContext.Calendar.getTimePeriods(String startPeriodAsString, String endPeriodAsString, String unitAsString) The same asDatamartContext.Calendar.getTimePeriodNames(String, String, String)but it returns a list of TimePeriod objects, rather than the corresponding period names.DatamartContext.Calendar.getTimePeriods(Date startDate, Date endDate, CalendarUtil.TimeUnit unit) Methods in net.pricefx.formulaengine with parameters of type CalendarUtil.TimePeriodModifier and TypeMethodDescriptionModelCalcFormulaContext.addRecord(String name, CalendarUtil.TimePeriod period, Map<String, ?> attributeValues, Map<String, FieldFormatType> fieldFormatTypesByColLabel, boolean... calculate) Deprecated.Adds a new record with the given name if none exist yet with that name in the DRAFT status (workflowStatus == WorkflowStatus.DRAFT).voidDatamartContext.DataSlice.exclude(CalendarUtil.TimePeriod timePeriod) Excludes the givenCalendarUtil.TimePeriodfrom this slice, matched against this slice's date dimension field.voidDatamartContext.DataSlice.include(CalendarUtil.TimePeriod timePeriod) Includes the givenCalendarUtil.TimePeriodin this slice, matched against this slice's date dimension field.DatamartContext.Calendar.timePeriodAsFilter(CalendarUtil.TimePeriod timePeriod, String dateDimFieldName) Helper method to build a filter representingdateDimFieldNamein[timePeriod.startPeriod, timePeriod.endPeriod]Note the inclusion on both ends; this is to accommodate the most frequent use case where the TimePeriod is a single period, for example InvoiceDate in [2015,2015].