UNPKG

@vizydrop/date-range-grammar

Version:
80 lines (77 loc) 3.71 kB
/********************************************************************* * © Copyright IBM Corp. 2025 *********************************************************************/ module.exports = [ { 'value': 'LAST 90 DAYS', 'title': 'Starts at 12:00:00 AM 90 days before the current day and continues until the end of the current day' }, { 'value': 'PREVIOUS WEEK', 'title': 'Starts at 12:00:00 AM on the first day of the week before the current week and continues for seven days' }, { 'value': 'THIS WEEK', 'title': 'Starts at 12:00:00 AM on the first day of the current week and continues for seven days' }, { 'value': 'YESTERDAY', 'title': 'Starts at 12:00:00 AM on the day before the current day and continues for 24 hours' }, { 'value': 'TODAY', 'title': 'Starts at 12:00:00 AM on the current day and continues until the end of the current day' }, { 'value': 'BETWEEN MONTH AGO AND TODAY', 'title': 'Starts at 12:00:00 AM on the first day of the calendar month before the current calendar month and continues until the end of the current day' }, { 'value': 'PREVIOUS MONTH', 'title': 'Starts at 12:00:00 AM on the first day of the month before the current month and continues for all the days of that month' }, { 'value': 'PREVIOUS QUARTER', 'title': 'Starts at 12:00:00 AM on the first day of the calendar quarter before the current calendar quarter and continues to the end of that quarter' }, { 'value': 'PREVIOUS YEAR', 'title': 'Starts at 12:00:00 AM on January 1 of the year before the current year and continues through the end of December 31 of that year' }, { 'value': 'PREVIOUS 6 WEEKS', 'title': 'Starts at 12:00:00 AM on the first day of the week that started six weeks before the current week and continues up to 11:59 PM on the last day of the week before the current week' }, { 'value': 'PREVIOUS 6 MONTHS', 'title': 'Starts at 12:00:00 AM on the first day of the month that started six months before the current month and continues up to 11:59 PM on the last day of the month before the current month' }, { 'value': 'PREVIOUS 2 QUARTERS', 'title': 'Starts at 12:00:00 AM on the first day of the calendar quarter two quarters ago and continues to the end of the calendar quarter before the current quarter' }, { 'value': 'PREVIOUS 3 YEARS', 'title': 'Starts at 12:00:00 AM on January 1, four years ago. The range ends on December 31 of the year before the current year' }, { 'value': 'THIS MONTH', 'title': 'Starts at 12:00:00 AM on the first day of the current month and continues for all the days of that month' }, { 'value': 'THIS QUARTER', 'title': 'Starts at 12:00:00 AM on the first day of the current calendar quarter and continues to the end of the quarter' }, { 'value': 'THIS YEAR', 'title': 'Starts at 12:00:00 AM on January 1 of the current year and continues through the end of December 31 of the current year' }, { 'value': 'BETWEEN 6 QUARTERS AGO AND 2 MONTHS AGO', 'title': 'Starts at 12:00:00 AM on the first day of the calendar quarter 6 quarters before the current calendar quarter and continues until to the first day of the calendar month 2 months before the current calendar month' }, { 'value': 'BETWEEN 1 January 2016 AND TODAY', 'title': 'Starts at 12:00:00 AM on the 1st January 2016 and continues until the end of the current day' } ];