Now is a Go library for working with dates and times. It helps compute and parse time values from strings and configuration.
Overview
Now is a time toolkit for the Go programming language. It is aimed at developers who need convenient helpers around dates, times, and common calendar concepts without hand-rolling parsing and arithmetic each time.
The library supports calculating times relative to the current moment, relative to another explicit time, or according to configured rules. Documentation describes helpers oriented around week boundaries such as Monday and Sunday without forcing a particular week-start setting everywhere.
String parsing is a core capability: callers can parse text into time values, and the set of accepted layouts can be extended by updating the library’s format list when a project needs additional patterns.
Now is distributed as a Go module that you import into applications. It fits tasks like scheduling, reporting windows, and normalizing user-entered date strings inside backend services.
Key features
- Time arithmetic from the current clock
- Calculations anchored to a given time
- Configuration-driven time rules
- Monday and Sunday week helpers
- Extensible string-to-time parsing
- Custom time layout support
Use cases
- Parsing date strings in Go services
- Computing week start and end boundaries
- Deriving relative timestamps in code
- Normalizing time input from configuration