Documentation ¶
Index ¶
- Constants
- func AlmostEqual(a, b float64) bool
- func CopyTime(d time.Time) time.Time
- func GetFirstDateOfMonth(d time.Time) time.Time
- func GetLastDateOfMonth(d time.Time) time.Time
- func GetLocalRepoLocation() string
- func SetDateFromString(date string) (time.Time, error)
- func SetDateTo0000Hours(d time.Time) time.Time
- func SetDateToEndOfMonth(d time.Time) time.Time
- func SetDateToEndOfMonthFinancials(d time.Time) time.Time
- func UnmarshalCSV(filepath string, obj interface{}) error
- func UnmarshalYAML(path string, obj interface{}) error
- type DateTime
- func (dt *DateTime) GetTime() time.Time
- func (DateTime) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (DateTime) GormDataType() string
- func (dt *DateTime) Scan(value interface{}) error
- func (date *DateTime) UnmarshalCSV(csv string) (err error)
- func (dt DateTime) Value() (driver.Value, error)
Constants ¶
View Source
const (
NumberOfMonthsInAYear = 12
)
Variables ¶
This section is empty.
Functions ¶
func AlmostEqual ¶
func GetLocalRepoLocation ¶
func GetLocalRepoLocation() string
func UnmarshalCSV ¶
func UnmarshalYAML ¶
Types ¶
type DateTime ¶
func (DateTime) GormDBDataType ¶
func (DateTime) GormDataType ¶
func (*DateTime) UnmarshalCSV ¶
Convert the CSV string as internal date
Click to show internal directories.
Click to hide internal directories.