Top 7.0% forks on proxy.golang.org
proxy.golang.org : github.com/RangelReale/epochdate
Represents dates from Jan 1 1970 - Jun 6 2149 as days since the Unix epoch. This format requires 2 bytes (it's a uint16), in contrast to the 16 or 20 byte representations (on 32 or 64-bit systems, respectively) used by the standard time package. Timezone is accounted for when applicable; when converting from standard time format into a Date, the date relative to the time value's zone is retained. Times at any point during a given day (relative to timezone) are normalized to the same date. Conversely, conversions back to standard time format may be done using the Local, UTC, and In methods (semantically corresponding to the same-named Time methods), but with the result normalized to midnight (the beginning of the day) relative to that timezone. All functions and methods with the same names as those found in the stdlib time package have identical semantics in epochdate, with the exception that epochdate truncates time-of-day information.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21rangel%21reale/epochdate
License: BSD-3-Clause
Latest release: almost 9 years ago
First release: almost 9 years ago
Namespace: github.com/RangelReale
Stars: 2 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 21 days ago