Skip to content

Releases: djherbis/times

Linux btime

20 Oct 15:09
d1af0aa
Compare
Choose a tag to compare

Big thanks to @mateusz834 for adding this support in #13

And @gildesmarais for reminding me to merge the PR

StatFile

09 May 19:25
a1edc5d
Compare
Choose a tag to compare

Expose StatFile to all GOOS/GOARCH. In most cases this effectively just calls to os.File.Stat() and then Get() on the result.

On Windows however, this will reuse the file handle of the open os.File passed to it to perform the same work normally done by times.Stat (but saves reopening the file).

Go module support

25 Mar 16:11
53caaf4
Compare
Choose a tag to compare

Adding a go mod file.

AIX Support

25 Mar 15:58
cac9927
Compare
Choose a tag to compare

Thanks to @aklyachkin for adding aix support.

Added support for GOOS=aix, GOARCH=ppc64.

Travis doesn't support testing, but tests were executed on an aix machine manually:

JS Support

02 Jan 23:06
847c520
Compare
Choose a tag to compare

Added support for GOOS=js, GOARCH=wasm.
Added tests for directories (not just files).
Added travis support for running tests & coverage on linux, osx, windows, and js/wasm.

Lstat supported

17 Nov 03:23
faa5b9c
Compare
Choose a tag to compare

Added support for Lstat #3
Added an example binary for getting/testing file times
Added more benchmarks & tests
Minor code cleanup

v1.0.1

07 Aug 20:00
Compare
Choose a tag to compare

Tests were failing on some platforms because the tests required file times to be within 50ms of the expected time. Some platforms only support second precision, so I've widened the acceptable range to +/- 1s from the expected time.

v1.0.0

11 Feb 03:06
Compare
Choose a tag to compare

The API is stable enough for a v1.0 release. If I make breaking changes, I'll bump the major version.

v0.10.0

24 Jan 21:19
Compare
Choose a tag to compare

#Changelog

  • #1 Get() on Windows no longer opens the file (Stat still does), ChangeTime is only returned by Stat not by Get().

v0.9.0

24 Jan 21:02
Compare
Choose a tag to compare

Description

  • API design is still being tweaked with, small changes can be expected (at least on Windows).

I'm creating this version for people who don't want to bother with the potentially breaking changes I'm considering adding before finalizing v1.0.0