package
0.0.0-20200513085925-1d97044de574
Repository: https://github.com/ver13/ava.git
Documentation: pkg.go.dev

# Packages

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

# Functions

After will be behave like time.After unless time has been frozen If time is frozen it will add the expected delay and immediately send the frozen time on the returned channel.
Create returns a new pointer to Times instance from a specific date and time.
CreateFromDate returns a new pointer to a Times instance from just a date.
CreateFromFormat returns a new pointer to a Times instance from a specific format.
CreateFromMonthAndYear returns a new pointer to a Times instance from a specific month and year.
CreateFromTime returns a new pointer to a Times instance from just a date.
CreateFromTimestamp returns a new pointer to a Times instance from a timestamp.
CreateFromTimestampUTC returns a new pointer to a Times instance from an UTC timestamp.
Freeze allows time to be frozen to facilitate testing.
GetEndOfDayMillis is a convenience method to get milliseconds since epoch for provided date's end of day.
GetMillis is a convenience method to get milliseconds since epoch.
GetMillisForTime is a convenience method to get milliseconds since epoch for provided Times.
GetStartOfDayMillis is a convenience method to get milliseconds since epoch for provided date's start of day.
IsTimeFrozen allows checking if time has been frozen.
MaxValue returns a pointer to a new Times instance for greatest supported date.
MinValue returns a pointer to a new Times instance for lowest supported date.
NewTime returns a pointer to a new Times instance.
Now returns a new Times instance for right now in current localtime.
NowInLocation returns a new Times instance for right now in given location.
No description provided by the author
PadDateStringZeros is a convenience method to pad 2 digit date parts with zeros to meet ISO 8601 format.
Parser returns a pointer to a new Times instance from a string If the location is invalid, it returns an ErrorAVA instead.
No description provided by the author
Sleep will be behave like time.Sleep unless time has been frozen If time is frozen it will add the expected sleep delay and return immediately.
Tick will be behave like time.Tick unless time has been frozen If time is frozen it will tick normally but the date will be based on the frozen date.
Today returns a pointer to a new Times instance for today If the location is invalid, it returns an ErrorAVA instead.
Tomorrow returns a pointer to a new Times instance for tomorrow If the location is invalid, it returns an ErrorAVA instead.
UnFreeze returns time to normal operation.
Yesterday returns a pointer to a new Times instance for yesterday If the location is invalid, it returns an ErrorAVA instead.

# Constants

Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.
Represents the different string formats for dates.

# Structs

Provides a simple api extension for Times.

# Interfaces

No description provided by the author

# Type aliases

Filter represents a predicate used for filtering diffs.