1export default { 2 methods: { 3 formatDate(dateString, format) { 4 const date = dayjs(dateString).utc('z'); 5 return date.format(format); 6 }, 7 formatTime(time) { 8 console.log('formatTime', time); 9 const [hours, minutes] = time.split(':'); 10 const date = new Date(); 11 date.setHours(hours); 12 date.setMinutes(minutes); 13 const options = { hour: 'numeric', minute: 'numeric', hour12: true }; 14 return date.toLocaleTimeString('en-US', options); 15 } 16 } 17}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.