You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
451 B
22 lines
451 B
//
|
|
// A basic set of time utilities that facilitates various micro services
|
|
// that make cyclops framework itself
|
|
//
|
|
// (C) Cyclops Labs 2019
|
|
//
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitlab.com/cyclops-utilities/date-utils/cyclops_utils"
|
|
)
|
|
|
|
func main() {
|
|
err, from, to := cyclops_utils.GetReportingPeriod("2019-10-01")
|
|
if err != nil {
|
|
fmt.Errorf("Error in processing input: %s", err.Error())
|
|
} else {
|
|
fmt.Printf("From: %s, To: %s\n", from, to);
|
|
}
|
|
} |