getinforbyhour v2.0.6
What is this
Thống kê status theo thời gian
Installation
npm install getinforbyhour --save
Then...
...
import { getInformationByHour, getInformationByDay } from 'getInformationByHour' ...
getInformationByHour(array_input, time_type, object_status, total_amount);
getInformationByDay(start_date, end_date, array_input, object_status, total_amount);
Options
GETINFORBYHOUR supports 3 options :
array_input - (Mảng Input để thống kê)
time_type - 12 / 24 (Number) (Kiểu thời gian 12h hoặc 24h)
object_status - Example ('active' : "SUBSCRIPTION_CHARGE_ACTIVATED", 'cancel' : "SUBSCRIPTION_CHARGE_CANCELED", 'expired' :"SUBSCRIPTION_CHARGE_EXPIRED") (Bất kể số lượng bạn muốn)
total_amount - true / false / undefined (Boolean) (Tính tổng tiền kiếm được, true : Có, có thể không cần điền)*
start_date - String Example ('2022/07/11') format ('YYYY/MM/DD') *
- end_date - String Example ('2022/07/12') format ('YYYY/MM/DD') *