package
0.18.0
Repository: https://github.com/montferret/ferret.git
Documentation: pkg.go.dev

# Functions

AddUnit add amount given in u to tm.
DATE parses a formatted string and returns DateTime object it represents.
DATE_ADD adds amount given in unit to date.
DATE_COMPARE checks if two partial dates match.
DATE_DAY returns the day of date as a number.
DATE_DAYOFWEEK returns number of the weekday from the date.
DATE_DAYOFYEAR returns the day of year number of date.
DATE_DAYS_IN_MONTH returns the number of days in the month of date.
DATE_DIFF returns the difference between two dates in given time unit.
DATE_FORMAT format date according to the given format string.
DATE_HOUR returns the hour of date as a number.
DATE_LEAPYEAR returns true if date is in a leap year else false.
DATE_MILLISECOND returns the millisecond of date as a number.
DATE_MINUTE returns the minute of date as a number.
DATE_MONTH returns the month of date as a number.
DATE_QUARTER returns which quarter date belongs to.
DATE_SECOND returns the second of date as a number.
DATE_SUBTRACT subtract amount given in unit to date.
DATE_YEAR returns the year extracted from the given date.
IsDatesEqual check if two partial dates match.
NOW returns new DateTime object with Time equal to time.Now().
No description provided by the author
UnitFromString returns true and an Unit object if Unit with that name exists.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Unit specifies an unit of time (Millisecond, Second...).