1function checkTimeBXT(data) { 2 const TNT_Express_cut_off_time = new Date(); 3 const UPS_Express_cut_off_time = new Date(); 4 const TNT_Economy_cut_off_time = new Date(); 5 const DHL_cut_off_time = new Date(); 6 const UPS_Economy_cut_off_time = new Date(); 7 const current_time = new Date(); 8 let month = data.month - 1; 9 TNT_Express_cut_off_time.setHours(12, 30, 0); 10 UPS_Express_cut_off_time.setHours(16, 0, 0); 11 TNT_Economy_cut_off_time.setHours(15, 30, 0); 12 DHL_cut_off_time.setHours(16, 0, 0); 13 UPS_Economy_cut_off_time.setHours(16, 0, 0); 14 current_time.setHours(data.hours); 15 current_time.setDate(data.date); 16 current_time.setMonth(month); 17 18 let status = { 19 'TNTExpress': current_time < TNT_Express_cut_off_time, 20 'TNTEconomy': current_time < TNT_Economy_cut_off_time, 21 'UPSExpress': current_time < UPS_Express_cut_off_time, 22 'DHL': current_time < DHL_cut_off_time, 23 'UPSEconomy': current_time < UPS_Economy_cut_off_time 24 } 25 26 return status; 27} 28 29export default checkTimeBXT;
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.