Skip to content
wesleystamPublic
forked from rickb777/date

About

A Go package for working with dates

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

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

  • DateRange which expresses a period between two dates.
  • TimeSpan which expresses a duration of time between two instants.
  • Period which expresses a period corresponding to the ISO-8601 form.
  • Clock which expresses a wall-clock style hours-minutes-seconds.

See package documentation for full documentation and examples.

Installation

go get -u github.com/wesleystam/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.

About

A Go package for working with dates

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages