Documentation ¶
Index ¶
Constants ¶
View Source
const Day = 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
example: ls-go --expr 'mtime().Sub(now())'
Types ¶
type TimeParams ¶
UnixFormatStr will be empty unless set by user with --time-style=+... so if UnixFormatStr is set, we ignore FormatStr in case of UnixFormatStr, MaxWidth is set once and used afterwards if Relative is true, we ignore all other fields
func (*TimeParams) SetTimeStyle ¶
func (f *TimeParams) SetTimeStyle(style string) error
Click to show internal directories.
Click to hide internal directories.