nl_tokens: Gets the specified increment in local time or UTC for a date object
pl_tokens: function getLocalOrGetUTC ( increment , date , utc = '' ) { const incrementHandlers = { [ TIMEZONE_OFFSET ] ( date ) { return utc ? 0 : date . getTimezoneOffset ( ) / 60 * - 1 ; } , [ MILLISECOND ] ( date ) { return date [ ` ${ utc } ` ] ( ) ; } , [ SECOND ] ( date ) { return date [ ` ${ utc } ` ] ( ) ; } , [ MINUTE ] ( date ) { return date [ ` ${ utc } ` ] ( ) ; } , [ HOUR ] ( date ) { return date [ ` ${ utc } ` ] ( ) ; } , [ DATE ] ( date ) { return date [ ` ${ utc } ` ] ( ) ; } , [ DAY ] ( date ) { return date [ ` ${ utc } ` ] ( ) + 1 ; } , [ WEEK ] ( date ) { return Math . floor ( ( ( date - new Date ( date [ ` ${ utc } ` ] ( ) , 0 , 1 ) ) / 1000 / 60 / 60 / 24 + 1 ) / 7 , ) ; } , [ MONTH ] ( date ) { return <mask> [ ` ${ utc } ` ] ( ) + 1 ; } , [ YEAR ] ( date ) { return date [ ` ${ utc } ` ] ( ) ; } , } ; return incrementHandlers [ increment ] ( date ) ; }