Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 978 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 978 Bytes

moment

Build Status

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: