timex
timex is a test-friendly replacement for the time package.
Usage
Just replace your time.Now() by a timex.Now() call, etc.
Mocking
Use timex.Override(...) to replace the current implemen
Go Natural Date
Natural date time parsing for Go. This package was designed for parsing human-friendly relative date/time ranges in Apex Logs' command-line log search.
Examples
Here are some examples of the
GODATE
Godate is a date toolkit for golang for easy date manipulation highly inspired by php's carbon Carbon
Installation
go get github.com/kofoworola/godate
Usage
The GoDate struct is simply
Terminal Countdown Timer
Usage
Specify duration in go format 1h2m3s.
countdown 25s
Add command with && to run after countdown.
countdown 1m30s && say "Hello, world"
when
when is a natural language date/time parser with pluggable rules and merge strategies
Examples
tonight at 11:10 pm
at Friday afternoon
the deadline is next tuesday 14:00
drop me a line n
timeutil - useful extensions to the golang's time package
timeutil provides useful extensions (Timedelta, Strftime, ...) to the golang's time package.
Quick Start
go get github.com/leekchan/timeutil
ex
Go Persian Calendar
Go Persian Calendar v0.3 provides functionality for conversion among Persian (Solar Hijri) and Gregorian calendars. A Julian calendar is used as an interface for all conversions. The package nam
Goweek
Simple ISO 8601-compatible library for working with week entities for Go programming language. Rewrite of old Ruby gem
Usage:
// importing:
import "github.com/grsmv/goweek"
// initializing gowee
Now
Now is a time toolkit for golang
Install
go get -u github.com/jinzhu/now
Usage
Calculating time based on current time
import "github.com/jinzhu/now"
time.Now() // 2013-11-18 17:51:49.1
durafmt
durafmt is a tiny Go library that formats time.Duration strings into a human readable format.
go get github.com/hako/durafmt
Why
If you've worked with time.Duration in Go, you most likely hav