Documentation ¶
Overview ¶
Package converter provides a wrapper for the functionality necessary to transform date value from one format to another. The cmd package parses commands, preps relevant settings, then calls the TimeConverter wrapper to do the work.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeConverter ¶
type TimeConverter struct{}
TypeConverter is the primary wrapper for conversion functionality.
func New ¶
func New() *TimeConverter
func (*TimeConverter) Convert ¶
func (tfd *TimeConverter) Convert(fullQuiet bool) (err error)
Convert executes the main conversion path. Note that the parameter fullQuiet means NOTHING should be output from this app, which should generally only be used by test funcs.
func (*TimeConverter) GetPipeInput ¶
func (tfd *TimeConverter) GetPipeInput() ([]byte, error)
GetPipeInput is called to retrieve data from StdIn
func (*TimeConverter) ParseInputTime ¶
func (tfd *TimeConverter) ParseInputTime(inputTimeText string, inputFormat helpers.TimeFormat) (convertTime time.Time, err error)
ParseInputTime is called to transform the input value text into a time.Time value based on inputFormat