import { parseQueryString } from './parse_querystring' ; internal export function getForceNow ( ) { const forceNow = parseQueryString ( ) . forceNow as string ; if ( ! forceNow ) { return ; } const ticks = Date . parse ( forceNow ) ; if ( isNaN ( ticks ) ) { throw new Error ( `forceNow query parameter, ${ forceNow }, can't be parsed by Date.parse` ) ; } return new Date ( ticks ) ; }