equal
deleted
inserted
replaced
29 // with their average: |
29 // with their average: |
30 // % gobm65 --reduce |
30 // % gobm65 --reduce |
31 // Display the latest 3 records with the average: |
31 // Display the latest 3 records with the average: |
32 // % gobm65 -l 3 --average |
32 // % gobm65 -l 3 --average |
33 // Display all records since a specific date: |
33 // Display all records since a specific date: |
|
34 // % gobm65 --from-date "2016-06-01" |
34 // % gobm65 --since "2016-06-01" |
35 // % gobm65 --since "2016-06-01" |
35 // Display all records before a specific date: |
36 // Display all records before a specific date: |
36 // % gobm65 --to-date "2016-06-30" |
37 // % gobm65 --to-date "2016-06-30" |
|
38 // % gobm65 --until "2016-06-30" |
37 // Display all records of the last 7 days: |
39 // Display all records of the last 7 days: |
38 // % gobm65 --since "$(date "+%F" -d "7 days ago")" |
40 // % gobm65 --since "$(date "+%F" -d "7 days ago")" |
39 // |
41 // |
40 // Display statistics for morning records: |
42 // Display statistics for morning records: |
41 // % gobm65 --from-time 06:00 --to-time 12:00 --stats |
43 // % gobm65 --from-time 06:00 --to-time 12:00 --stats |
581 fromTime := flag.String("from-time", "", "Select records after time (HH:MM)") |
583 fromTime := flag.String("from-time", "", "Select records after time (HH:MM)") |
582 toTime := flag.String("to-time", "", "Select records bofore time (HH:MM)") |
584 toTime := flag.String("to-time", "", "Select records bofore time (HH:MM)") |
583 reduce := flag.BoolP("reduce", "r", false, "Reduce number of measurements (regroup measurements)") |
585 reduce := flag.BoolP("reduce", "r", false, "Reduce number of measurements (regroup measurements)") |
584 |
586 |
585 flag.StringVar(fromDate, "since", "", "Same as --from-date") |
587 flag.StringVar(fromDate, "since", "", "Same as --from-date") |
|
588 flag.StringVar(toDate, "until", "", "Same as --to-date") |
586 |
589 |
587 var startTime, endTime simpleTime |
590 var startTime, endTime simpleTime |
588 |
591 |
589 flag.Parse() |
592 flag.Parse() |
590 |
593 |