export function timeInSeconds ( field , asField ? ) { return ` EXTRACT(EPOCH FROM ${ field })*1000 as ${ asField ?? field } ` ; } export function expireTime ( ttl_s = 0 ) { return new Date ( new Date ( ) . valueOf ( ) + ttl_s * 1000 ) ; }