Skip to content

Latest commit

 

History

History

timex

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

package timex

package timex provides a set of utilities to convert strings into time.Time{}.

It currently supports the following format types:

  • Current time: "now" or ""
  • Dates: "2016-04-23 12:56" or "2016-04-23"
  • Days: "-1 day" or "-10 days"
  • Hours: "-1 hour" or "-10 hours"
  • Timestamp: "1464876005"

Usage

For detailed usage see examples