Skip to content

Instantly share code, notes, and snippets.

@wave-inguane
Created Sep 24, 2021
Embed
What would you like to do?
GlideDateTime
(function() {
var optionValues = {
"ON_NOT_ON": [{
"text": "${gs.getMessage('Today')}",
"id": "Today@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "Yesterday@javascript:gs.daysAgoStart(1)@javascript:gs.daysAgoEnd(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "Tomorrow@javascript:gs.daysAgoStart(-1)@javascript:gs.daysAgoEnd(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "This week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "Last week@javascript:gs.beginningOfLastWeek()@javascript:gs.endOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "Next week@javascript:gs.beginningOfNextWeek()@javascript:gs.endOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "This month@javascript:gs.beginningOfThisMonth()@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Previous month')}",
"id": "Last month@javascript:gs.beginningOfLastMonth()@javascript:gs.endOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "Next month@javascript:gs.beginningOfNextMonth()@javascript:gs.endOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "Last 3 months@javascript:gs.monthsAgoStart(3)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "Last 6 months@javascript:gs.monthsAgoStart(6)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "Last 9 months@javascript:gs.monthsAgoStart(9)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "Last 12 months@javascript:gs.monthsAgoStart(12)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "This quarter@javascript:gs.beginningOfThisQuarter()@javascript:gs.endOfThisQuarter()"
}, {
"text": "${gs.getMessage('Last quarter')}",
"id": "Last quarter@javascript:gs.quartersAgoStart(1)@javascript:gs.quartersAgoEnd(1)"
}, {
"text": "${gs.getMessage('Last 2 quarters')}",
"id": "Last 2 quarters@javascript:gs.quartersAgoStart(1)@javascript:gs.endOfThisQuarter()"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "Next quarter@javascript:gs.quartersAgoStart(-1)@javascript:gs.quartersAgoEnd(-1)"
}, {
"text": "${gs.getMessage('Next 2 quarters')}",
"id": "Next 2 quarters@javascript:gs.quartersAgoStart(-1)@javascript:gs.quartersAgoEnd(-2)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "This year@javascript:gs.beginningOfThisYear()@javascript:gs.endOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "Next year@javascript:gs.beginningOfNextYear()@javascript:gs.endOfNextYear()"
}, {
"text": "${gs.getMessage('Last year'sAgoStart(30)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "Last 60 days@javascript:gs.daysAgoStart(60)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 90 da)}",
"id": "Last year@javascript:gs.beginningOfLastYear()@javascript:gs.endOfLastYear()"
}, {
"text": "${gs.getMessage('Last 2 year')}",
"id": "Last 2 years@javascript:gs.beginningOfLastYear()@javascript:gs.endOfThisYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "Last 7 days@javascript:gs.daysAgoStart(7)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "Last 30 days@javascript:gs.dayys')}",
"id": "Last 90 days@javascript:gs.daysAgoStart(90)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 120 days')}",
"id": "Last 120 days@javascript:gs.daysAgoStart(120)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Current time')}",
"id": "Current hour@javascript:gs.hoursAgoStart(0)@javascript:gs.hoursAgoEnd(0)"
}, {
"text": "${gs.getMessage('Previous time')}",
"id": "Last hour@javascript:gs.hoursAgoStart(1)@javascript:gs.hoursAgoEnd(1)"
},
{
"text": "${gs.getMessage('Previous 2 hours')}",
"id": "Last 2 hours@javascript:gs.hoursAgo(2)@javascript:gs.hoursAgo(0)"
},
{
"text": "${gs.getMessage('Previous 4 hours')}",
"id": "Last 4 hours@javascript:gs.hoursAgo(4)@javascript:gs.hoursAgo(0)"
},
],
"BEFORE": [{
"text": "${gs.getMessage('Today')}",
"id": "Today@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "Yesterday@javascript:gs.daysAgoStart(1)@javascript:gs.daysAgoEnd(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "Tomorrow@javascript:gs.daysAgoStart(-1)@javascript:gs.daysAgoEnd(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "This week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "Last week@javascript:gs.beginningOfLastWeek()@javascript:gs.endOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "Next week@javascript:gs.beginningOfNextWeek()@javascript:gs.endOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "This month@javascript:gs.beginningOfThisMonth()@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last month')}",
"id": "Last month@javascript:gs.beginningOfLastMonth()@javascript:gs.endOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "Next month@javascript:gs.beginningOfNextMonth()@javascript:gs.endOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "Last 3 months@javascript:gs.monthsAgoStart(3)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "Last 6 months@javascript:gs.monthsAgoStart(6)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "Last 9 months@javascript:gs.monthsAgoStart(9)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "Last 12 months@javascript:gs.monthsAgoStart(12)@javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "This quarter@javascript:gs.beginningOfThisQuarter()@javascript:gs.endOfThisQuarter()"
}, {
"text": "${gs.getMessage('Last quarter')}",
"id": "Last quarter@javascript:gs.quartersAgoStart(1)@javascript:gs.quartersAgoEnd(1)"
}, {
"text": "${gs.getMessage('Last 2 quarters')}",
"id": "Last 2 quarters@javascript:gs.quartersAgoStart(1)@javascript:gs.endOfThisQuarter()"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "Next quarter@javascript:gs.quartersAgoStart(-1)@javascript:gs.quartersAgoEnd(-1)"
}, {
"text": "${gs.getMessage('Next 2 quarters')}",
"id": "Next 2 quarters@javascript:gs.quartersAgoStart(-1)@javascript:gs.quartersAgoEnd(-2)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "This year@javascript:gs.beginningOfThisYear()@javascript:gs.endOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "Next year@javascript:gs.beginningOfNextYear()@javascript:gs.endOfNextYear()"
}, {
"text": "${gs.getMessage('Last year')}",
"id": "Last year@javascript:gs.beginningOfLastYear()@javascript:gs.endOfLastYear()"
}, {
"text": "${gs.getMessage('Last 2 year')}",
"id": "Last 2 years@javascript:gs.beginningOfLastYear()@javascript:gs.endOfThisYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "Last 7 days@javascript:gs.daysAgoStart(7)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "Last 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "Last 60 days@javascript:gs.daysAgoStart(60)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 90 days')}",
"id": "Last 90 days@javascript:gs.daysAgoStart(90)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last 120 days')}",
"id": "Last 120 days@javascript:gs.daysAgoStart(120)@javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Current time')}",
"id": "Current hour@javascript:gs.hoursAgoStart(0)@javascript:gs.hoursAgoEnd(0)"
}, {
"text": "${gs.getMessage('Previous time')}",
"id": "Last hour@javascript:gs.hoursAgoStart(1)@javascript:gs.hoursAgoEnd(1)"
}, {
"text": "${gs.getMessage('Previous 2 hours')}",
"id": "Last 2 hours@javascript:gs.hoursAgo(2)@javascript:gs.hoursAgo(0)"
},],
"AT_OR_BEFORE": [{
"text": "${gs.getMessage('Today')}",
"id": "javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "javascript:gs.daysAgoEnd(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "javascript:gs.daysAgoEnd(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "javascript:gs.endOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "javascript:gs.endOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "javascript:gs.endOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Previous month')}",
"id": "javascript:gs.endOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "javascript:gs.endOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "javascript:gs.monthsAgoStart(3)"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "javascript:gs.monthsAgoStart(6)"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "javascript:gs.monthsAgoStart(9)"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "javascript:gs.monthsAgoStart(12)"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "javascript:gs.endOfThisQuarter()"
}, {
"text": "${gs.getMessage('Previous quarter')}",
"id": "javascript:gs.quartersAgoEnd(1)"
}, {
"text": "${gs.getMessage('Last 2 quarters')}",
"id": "javascript:gs.quartersAgoEnd(2)"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "javascript:gs.quartersAgoEnd(-1)"
}, {
"text": "${gs.getMessage('Next 2 quarters')}",
"id": "javascript:gs.quartersAgoEnd(-2)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "javascript:gs.endOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "javascript:gs.endOfNextYear()"
}, {
"text": "${gs.getMessage('Previous year')}",
"id": "javascript:gs.endOfLastYear()"
}, {
"text": "${gs.getMessage('Last 2 year')}",
"id": "javascript:gs.beginningOfLastYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "javascript:gs.daysAgoStart(7)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "javascript:gs.daysAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "javascript:gs.daysAgoStart(60)"
}, {
"text": "${gs.getMessage('Last 90 days')}",
"id": "javascript:gs.daysAgoStart(90)"
}, {
"text": "${gs.getMessage('Last 120 days')}",
"id": "javascript:gs.daysAgoStart(120)"
}, {
"text": "${gs.getMessage('Current time')}",
"id": "javascript:gs.hoursAgoEnd(0)"
}, {
"text": "${gs.getMessage('Previous time')}",
"id": "javascript:gs.hoursAgoEnd(1)"
}, {
"text": "${gs.getMessage('Previous 2 hours')}",
"id": "javascript:gs.hoursAgo(2)"
}, {
"text": "${gs.getMessage('Current minute')}",
"id": "javascript:gs.minutesAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last minute')}",
"id": "javascript:gs.minutesAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 15 minutes')}",
"id": "javascript:gs.minutesAgoStart(15)"
}, {
"text": "${gs.getMessage('Last 30 minutes')}",
"id": "javascript:gs.minutesAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 45 minutes')}",
"id": "javascript:gs.minutesAgoStart(45)"
}, {
"text": "${gs.getMessage('One year ago')}",
"id": "javascript:gs.monthsAgo(12)"
} ],
"AFTER": [{
"text": "${gs.getMessage('Today')}",
"id": "javascript:gs.daysAgoEnd(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "javascript:gs.daysAgoEnd(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "javascript:gs.daysAgoEnd(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "javascript:gs.endOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "javascript:gs.endOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "javascript:gs.endOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "javascript:gs.endOfThisMonth()"
}, {
"text": "${gs.getMessage('Last month')}",
"id": "javascript:gs.endOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "javascript:gs.endOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "javascript:gs.monthsAgoStart(3)"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "javascript:gs.monthsAgoStart(6)"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "javascript:gs.monthsAgoStart(9)"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "javascript:gs.monthsAgoStart(12)"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "javascript:gs.endOfThisQuarter()"
}, {
"text": "${gs.getMessage('Last quarter')}",
"id": "javascript:gs.quartersAgoEnd(1)"
}, {
"text": "${gs.getMessage('Last 2 quarters')}",
"id": "javascript:gs.quartersAgoEnd(2)"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "javascript:gs.quartersAgoEnd(-1)"
}, {
"text": "${gs.getMessage('Next 2 quarters')}",
"id": "javascript:gs.quartersAgoEnd(-2)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "javascript:gs.endOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "javascript:gs.endOfNextYear()"
}, {
"text": "${gs.getMessage('Last year')}",
"id": "javascript:gs.endOfLastYear()"
}, {
"text": "${gs.getMessage('Last 2 years')}",
"id": "javascript:gs.beginningOfLastYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "javascript:gs.daysAgoStart(7)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "javascript:gs.daysAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "javascript:gs.daysAgoStart(60)"
}, {
"text": "${gs.getMessage('Last 90 days')}",
"id": "javascript:gs.daysAgoStart(90)"
}, {
"text": "${gs.getMessage('Last 120 days')}",
"id": "javascript:gs.daysAgoStart(120)"
}, {
"text": "${gs.getMessage('Current hour')}",
"id": "javascript:gs.hoursAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last hour')}",
"id": "javascript:gs.hoursAgoEnd(1)"
}, {
"text": "${gs.getMessage('Last 2 hours')}",
"id": "javascript:gs.hoursAgo(2)"
}, {
"text": "${gs.getMessage('Current minute')}",
"id": "javascript:gs.minutesAgoEnd(0)"
}, {
"text": "${gs.getMessage('Last minute')}",
"id": "javascript:gs.minutesAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 15 minutes')}",
"id": "javascript:gs.minutesAgoStart(15)"
}, {
"text": "${gs.getMessage('Last 30 minutes')}",
"id": "javascript:gs.minutesAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 45 minutes')}",
"id": "javascript:gs.minutesAgoStart(45)"
}, {
"text": "${gs.getMessage('One year ago')}",
"id": "javascript:gs.monthsAgo(12)"
}],
"AT_OR_AFTER": [{
"text": "${gs.getMessage('Today')}",
"id": "javascript:gs.daysAgoStart(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "javascript:gs.daysAgoStart(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "javascript:gs.daysAgoStart(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "javascript:gs.beginningOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "javascript:gs.beginningOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "javascript:gs.beginningOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "javascript:gs.beginningOfThisMonth()"
}, {
"text": "${gs.getMessage('Previous month')}",
"id": "javascript:gs.beginningOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "javascript:gs.beginningOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "javascript:gs.monthsAgoStart(3)"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "javascript:gs.monthsAgoStart(6)"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "javascript:gs.monthsAgoStart(9)"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "javascript:gs.monthsAgoStart(12)"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "javascript:gs.beginningOfThisQuarter()"
}, {
"text": "${gs.getMessage('Previous quarter')}",
"id": "javascript:gs.quartersAgoStart(1)"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "javascript:gs.quartersAgoStart(-1)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "javascript:gs.beginningOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "javascript:gs.beginningOfNextYear()"
}, {
"text": "${gs.getMessage('Previous year')}",
"id": "javascript:gs.beginningOfLastYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "javascript:gs.daysAgoStart(7)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "javascript:gs.daysAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "javascript:gs.daysAgoStart(60)"
}, {
"text": "${gs.getMessage('Last 90 days')}",
"id": "javascript:gs.daysAgoStart(90)"
}, {
"text": "${gs.getMessage('Sist 120 days')}",
"id": "javascript:gs.daysAgoStart(120)"
}, {
"text": "${gs.getMessage('Current time')}",
"id": "javascript:gs.hoursAgoStart(0)"
}, {
"text": "${gs.getMessage('Previous time')}",
"id": "javascript:gs.hoursAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 2 hours')}",
"id": "javascript:gs.hoursAgo(2)"
}, {
"text": "${gs.getMessage('Current minute')}",
"id": "javascript:gs.minutesAgoStart(0)"
}, {
"text": "${gs.getMessage('Last minute')}",
"id": "javascript:gs.minutesAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 15 minutes')}",
"id": "javascript:gs.minutesAgoStart(15)"
}, {
"text": "${gs.getMessage('Last 30 minutes')}",
"id": "javascript:gs.minutesAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 45 minutes')}",
"id": "javascript:gs.minutesAgoStart(45)"
}, {
"text": "${gs.getMessage('One year ago')}",
"id": "javascript:gs.monthsAgo(12)"
} ],
"BETWEEN_FROM": [{
"text": "${gs.getMessage('Today')}",
"id": "javascript:gs.daysAgoStart(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "javascript:gs.daysAgoStart(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "javascript:gs.daysAgoStart(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "javascript:gs.beginningOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "javascript:gs.beginningOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "javascript:gs.beginningOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "javascript:gs.beginningOfThisMonth()"
}, {
"text": "${gs.getMessage('Previous month')}",
"id": "javascript:gs.beginningOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "javascript:gs.beginningOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "javascript:gs.monthsAgoStart(3)"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "javascript:gs.monthsAgoStart(6)"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "javascript:gs.monthsAgoStart(9)"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "javascript:gs.monthsAgoStart(12)"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "javascript:gs.beginningOfThisQuarter()"
}, {
"text": "${gs.getMessage('Previous quarter')}",
"id": "javascript:gs.quartersAgoStart(1)"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "javascript:gs.quartersAgoStart(-1)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "javascript:gs.beginningOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "javascript:gs.beginningOfNextYear()"
}, {
"text": "${gs.getMessage('Previous year')}",
"id": "javascript:gs.beginningOfLastYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "javascript:gs.daysAgoStart(7)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "javascript:gs.daysAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "javascript:gs.daysAgoStart(60)"
}, {
"text": "${gs.getMessage('Last 90 days')}",
"id": "javascript:gs.daysAgoStart(90)"
}, {
"text": "${gs.getMessage('Last 120 days')}",
"id": "javascript:gs.daysAgoStart(120)"
}, {
"text": "${gs.getMessage('Current time')}",
"id": "javascript:gs.hoursAgoStart(0)"
}, {
"text": "${gs.getMessage('Previous time')}",
"id": "javascript:gs.hoursAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 2 hours')}",
"id": "javascript:gs.hoursAgo(2)"
}, {
"text": "${gs.getMessage('Current minute')}",
"id": "javascript:gs.minutesAgoStart(0)"
}, {
"text": "${gs.getMessage('Last minute')}",
"id": "javascript:gs.minutesAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 15 minutes')}",
"id": "javascript:gs.minutesAgoStart(15)"
}, {
"text": "${gs.getMessage('Last 30 minutes')}",
"id": "javascript:gs.minutesAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 45 minutes')}",
"id": "javascript:gs.minutesAgoStart(45)"
}, {
"text": "${gs.getMessage('One year ago')}",
"id": "javascript:gs.monthsAgo(12)"
} ],
"BETWEEN_TO": [{
"text": "${gs.getMessage('Today')}",
"id": "javascript:gs.daysAgoStart(0)"
}, {
"text": "${gs.getMessage('Yesterday')}",
"id": "javascript:gs.daysAgoStart(1)"
}, {
"text": "${gs.getMessage('Tomorrow')}",
"id": "javascript:gs.daysAgoStart(-1)"
}, {
"text": "${gs.getMessage('This week')}",
"id": "javascript:gs.beginningOfThisWeek()"
}, {
"text": "${gs.getMessage('Last week')}",
"id": "javascript:gs.beginningOfLastWeek()"
}, {
"text": "${gs.getMessage('Next week')}",
"id": "javascript:gs.beginningOfNextWeek()"
}, {
"text": "${gs.getMessage('This month')}",
"id": "javascript:gs.beginningOfThisMonth()"
}, {
"text": "${gs.getMessage('Previous month')}",
"id": "javascript:gs.beginningOfLastMonth()"
}, {
"text": "${gs.getMessage('Next month')}",
"id": "javascript:gs.beginningOfNextMonth()"
}, {
"text": "${gs.getMessage('Last 3 months')}",
"id": "javascript:gs.monthsAgoStart(3)"
}, {
"text": "${gs.getMessage('Last 6 months')}",
"id": "javascript:gs.monthsAgoStart(6)"
}, {
"text": "${gs.getMessage('Last 9 months')}",
"id": "javascript:gs.monthsAgoStart(9)"
}, {
"text": "${gs.getMessage('Last 12 months')}",
"id": "javascript:gs.monthsAgoStart(12)"
}, {
"text": "${gs.getMessage('This quarter')}",
"id": "javascript:gs.beginningOfThisQuarter()"
}, {
"text": "${gs.getMessage('Previous quarter')}",
"id": "javascript:gs.quartersAgoStart(1)"
}, {
"text": "${gs.getMessage('Next quarter')}",
"id": "javascript:gs.quartersAgoStart(-1)"
}, {
"text": "${gs.getMessage('This year')}",
"id": "javascript:gs.beginningOfThisYear()"
}, {
"text": "${gs.getMessage('Next year')}",
"id": "javascript:gs.beginningOfNextYear()"
}, {
"text": "${gs.getMessage('Previous year')}",
"id": "javascript:gs.beginningOfLastYear()"
}, {
"text": "${gs.getMessage('Last 7 days')}",
"id": "javascript:gs.daysAgoStart(7)"
}, {
"text": "${gs.getMessage('Last 30 days')}",
"id": "javascript:gs.daysAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 60 days')}",
"id": "javascript:gs.daysAgoStart(60)"
}, {
"text": "${gs.getMessage('Last 90 days')}",
"id": "javascript:gs.daysAgoStart(90)"
}, {
"text": "${gs.getMessage('Last 120 days')}",
"id": "javascript:gs.daysAgoStart(120)"
}, {
"text": "${gs.getMessage('Current time')}",
"id": "javascript:gs.hoursAgoStart(0)"
}, {
"text": "${gs.getMessage('Previous time')}",
"id": "javascript:gs.hoursAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 2 hours')}",
"id": "javascript:gs.hoursAgo(2)"
}, {
"text": "${gs.getMessage('Current minute')}",
"id": "javascript:gs.minutesAgoStart(0)"
}, {
"text": "${gs.getMessage('Last minute')}",
"id": "javascript:gs.minutesAgoStart(1)"
}, {
"text": "${gs.getMessage('Last 15 minutes')}",
"id": "javascript:gs.minutesAgoStart(15)"
}, {
"text": "${gs.getMessage('Last 30 minutes')}",
"id": "javascript:gs.minutesAgoStart(30)"
}, {
"text": "${gs.getMessage('Last 45 minutes')}",
"id": "javascript:gs.minutesAgoStart(45)"
}, {
"text": "${gs.getMessage('One year ago')}",
"id": "javascript:gs.monthsAgo(12)"
} ]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment