Debian Codegraph @

/

debian golang-github-rickb777-date 1.20.1-1debian golang-github-rickb777-date-dev gomod github.com/rickb777/date shell shell-project 0.0.0 debiangoinimakefilemarkdownshellyaml 67 files · 957 symbols
View dependency graph

Depends on

README (full)

date

GoDoc Build Status Coverage Status Go Report Card Issues

Package date provides functionality for working with dates.

This package introduces a light-weight Date type that is storage-efficient and convenient for calendrical calculations and date parsing and formatting (including years outside the [0,9999] interval).

It also provides

  • clock.Clock which expresses a wall-clock style hours-minutes-seconds with millisecond precision.
  • period.Period which expresses a period corresponding to the ISO-8601 form (e.g. "PT30S").
  • timespan.DateRange which expresses a period between two dates.
  • timespan.TimeSpan which expresses a duration of time between two instants.
  • view.VDate which wraps Date for use in templates etc.

See package documentation for full documentation and examples.

Installation

go get -u github.com/rickb777/date

or

dep ensure -add github.com/rickb777/date

Status

This library has been in reliable production use for some time. Versioning follows the well-known semantic version pattern.

Credits

This package follows very closely the design of package time in the standard library; many of the Date methods are implemented using the corresponding methods of the time.Time type and much of the documentation is copied directly from that package.

The original Good Work on which this was based was done by Filippo Tampieri at Fxtlabs.

dir clock/
dir datetool/
dir debian/
dir gregorian/
dir period/
dir timespan/
dir view/
file .gitignore
file .travis.yml
file LICENSE
file README.md
file build+test.sh
file coverage.sh
file date.go
file date_test.go
file doc.go
file example_test.go
file format.go
file format_test.go
file go.mod
file go.sum
file marshal.go
file marshal_test.go
file parse.go
file parse_test.go
file rep.go
file rep_test.go
file sql.go
file sql_test.go