func GetTimeUnitString(timeUnit int32) string {
	switch timeUnit {
	case SignalTimeUnitNOW:
		{
			return "now"
		}
	case SignalTimeUnitMONTH:
		{
			return "month"
		}
	case SignalTimeUnitQUARTER:
		{
			return "quarter"
		}
	case SignalTimeUnitBIMONTH:
		{
			return "bimonth"
		}
	case SignalTimeUnitHALFYEAR:
		{
			return "halfyear"
		}
	case SignalTimeUnitTHIRDQUARTER:
		{
			return "thirdquarter"
		}
	case SignalTimeUnitYEAR:
		{
			return "year"
		}
	}
	return "alltime"
}
GetTimeUnitString will return the timeunit as a string
package datetime
import (
	"fmt"
	"reflect"
	"regexp"
	"strings"
	"time"
)
const (
	SignalTimeUnitNOW int32 = 0
	SignalTimeUnitMONTH int32 = 30
	SignalTimeUnitQUARTER int32 = 90
	SignalTimeUnitHALFYEAR int32 = 180
	SignalTimeUnitYEAR int32 = 365
	SignalTimeUnitTHIRDQUARTER int32 = 270
	SignalTimeUnitALLTIME int32 = -1
	SignalTimeUnitBIMONTH int32 = 60
	DaysInMilliseconds int64 = 86400000
)
const RFC3339 = "2006-01-02T15:04:05.999999999-07:00"