Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeLayout = "2006-01-02" //this represents YYYY-MM-DD
TimeLayout helps to parse a date string of the format YYYY-MM-DD
Intended to be used with the following function: time.Parse(TimeLayout, date)
Functions ¶
func ConvertAmtCurTime ¶
func ConvertAmtCurTime(denomOut string, in *types.AmtCurTime) (out *types.AmtCurTime, err error)
ConvertAmtCurTime converts a AmtCurTime variable to the same value with a different valuation denom
func ParseDateRange ¶
ParseDateRange parses a date range string of the format start:end
where the start and end date are of the format YYYY-MM-DD. The parsed dates are time.Time and will return the zero time for unbounded dates, ex: unbounded start: :2000-12-31 unbounded end: 2000-12-31:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.