Port of moment.js to Golang with some additional features for working with dates and times
Go
Latest commit e837f27 Apr 22, 2014 @cristiangraz cristiangraz Initial commit
Permalink
Failed to load latest commit information.
README.md
diff.go
moment.go
moment_parser.go
moment_parser_test.go
strftime_parser.go
strftime_parser_test.go

README.md

moment

Port of moment.js to Go (Golang) with some additional features for working with dates and times. Also some major inspiration from Carbon as well as some custom functions.

Supports custom formats (i.e. YYYY-MM-DD instead of Go's 2006-01-02) - currently the moment format and strftime formats are supported.

Note this is still a work in progress and not anywhere near production ready. Please feel free to fork and contribute missing methods, timezones, strtotime(), locale/languages functionality, or just provide more idiomatic Go if you see potential for improvement. I'm currently working on unit tests and eventually documentation.

Links: