Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the version of this based on the git sha. Version string = "" )
Functions ¶
This section is empty.
Types ¶
type UntilResult ¶
type UntilResult struct { // Target is the date you are working to. Target time.Time // Duration is the time.Duration between now and then. Duration time.Duration // Days is the number of calendar days. Days int // WorkingDays is the number of working days between now and then. WorkingDays int // Holidays is the number of Holidays between now and then. Holidays int }
UntilResult contains the days between now and then.
func TimeUntil ¶
func TimeUntil(targetarg string) (*UntilResult, error)
TimeUntil returns the duration until the target date.
func (*UntilResult) String ¶
func (r *UntilResult) String() string
String is a formatted UntilResult.
Click to show internal directories.
Click to hide internal directories.