67 Commits

Author SHA1 Message Date
Thijs Schreijer
2be47e4bca release 2.2.1 2023-09-06 20:09:59 +02:00
Thijs Schreijer
e49be6eab9 fix(ci): check 'master' instead of 'main' 2023-09-06 19:59:11 +02:00
waynec86
b20176ce47 fix(parse): offset parsing when seconds are decimal (#33) 2023-09-06 17:41:26 +02:00
Thijs Schreijer
ea9ca801a4 chore(ci): switch to github actions 2023-09-06 17:37:32 +02:00
Thijs Schreijer
b8147d8e6b chore(*) update linter, add makefile 2023-09-06 17:34:24 +02:00
Thijs Schreijer
ebbdef7593 chore(whitespace): fix indent 2023-09-06 16:18:00 +02:00
Thijs Schreijer
32ac69fc42 chore(date): fix warning
the call `setz(c, x)` would pass 2 arguments, the TZ offset, and
TZ abreviated name. WHere only the offset would be used. Hence it is
safe to remove the `x` parameter from the call.

Fixes #30
2023-09-06 15:21:18 +02:00
roblox_rkeller Ray
e309741edc fix(ISO8601): comma-spec'd decimal seconds (#31) 2023-06-19 14:52:25 +02:00
Alexander Turenko
e5d38bb4e8 rockspec: use git+https:// for git repository URL
GitHub is going to disable unencrypted Git protocol, so `git://` URLs
will stop working soon (see [1]).

Bumped the rockspec revision.

[1]: https://github.blog/2021-09-01-improving-git-protocol-security-github/
2021-11-22 12:57:18 +01:00
Thijs Schreijer
8d74567cf9 chore(readme) update version number 2021-07-19 13:38:33 +02:00
Thijs Schreijer
fa3d824e5b release 2.2 2021-07-19 13:14:55 +02:00
Thijs Schreijer
434d7ad64f feat(year) make 2 digit year configurable (#26)
adds a global setting and 2 functions;
- setcenturyflip(val)
- val = getcenturyflip()

Co-authored-by: dimfish <dimfish@gmail.com>
2021-07-19 09:50:09 +02:00
Thijs Schreijer
a2c1a83f3e chore(*) update copyright years 2021-07-18 10:13:05 +02:00
Thijs Schreijer
4f68c2d392 chore(*) replace tabs with spaces 2021-07-18 10:00:06 +02:00
Thijs Schreijer
91231a63e6 chore(ci) update links to travis-ci.com 2021-07-18 09:59:44 +02:00
Thijs Schreijer
58f277dad4 chore(docs) small clarification/correction (#25)
fixes #24
2021-07-18 09:06:54 +02:00
Thijs Schreijer
cd8f6d40e9 release 2.1.3 2020-11-21 09:07:33 +01:00
Thijs Schreijer
fc52f2bbf2 chore(cleanup) some non-functional maintenance
- add 'docs' to rockspec for `luarocks doc date` to work
- config trim trailing whitespace
- trim trailing whitespace
- remove test file since it was moved to spec/
2020-10-05 09:09:11 +02:00
leaf corcoran
a5c8be9dc6 update rockspec, remove 5.4 limitation 2020-10-05 08:36:12 +02:00
leaf corcoran
c5d1718769 lua 5.4 travis test 2020-10-05 08:36:12 +02:00
Thijs Schreijer
b3c3cba87b housekeeping, adding CI, moving some source files, fix linter 2018-12-03 15:48:49 +01:00
Thijs Schreijer
7a05302fb8 remove dead code 2018-04-24 22:20:17 +02:00
Thijs Schreijer
ed92f2499f reduce use of varargs
fixes #17
2018-04-21 00:25:06 +02:00
Thijs Schreijer
b30f6f82ed move doc to docs and remove gh-pages branch 2018-04-20 22:56:22 +02:00
Thijs Schreijer
aa99832ac3 Merge pull request #15 from Scottkao85/patch-1
Update LICENSE
2017-01-31 23:51:21 +01:00
Scott Kao
2ed2eaf723 Update LICENSE
update copyright year to 2017
2017-01-01 17:59:27 -08:00
Thijs Schreijer
35b63cd542 rockspec version update 2015-11-13 00:04:59 +01:00
Thijs Schreijer
f5a3c0d6f9 notation fix and 5.3 ready 2015-11-13 00:04:07 +01:00
Thijs Schreijer
243482af0a Merge pull request #9 from fertel/master
seconds including fraction used scientific notation if less then 1e-4
2015-11-10 22:31:41 +01:00
Jason Fertel
d74a483ee4 seconds including fraction used scientific notation if less then 1e-4 2015-11-05 14:31:59 -05:00
Thijs Schreijer
80f95ab664 fixed some documentation typos 2014-06-08 08:57:06 +02:00
Thijs Schreijer
df6ce667c6 Merge branch 'master' of github.com:brendangilmore/date
Conflicts:
	date-2.1.1-1.rockspec

actually no changes were made...
2014-06-08 07:41:48 +02:00
Thijs Schreijer
ac569c1a70 release version 2.1.1 2014-01-05 09:04:39 +01:00
Thijs Schreijer
4f722b7e2c prepare for release 2014-01-05 08:57:16 +01:00
Thijs Schreijer
2d696f797a Prepare for release 2014-01-05 08:51:05 +01:00
Thijs Schreijer
ee85631c44 Added a whole bunch of tests 2014-01-03 21:19:45 +01:00
Thijs Schreijer
bf9fb008d3 test travis 2014-01-02 14:59:08 +01:00
Thijs Schreijer
0e53489671 first try at travis... 2014-01-02 14:47:08 +01:00
Thijs Schreijer
934e057630 Merge branch 'master' of github.com:Tieske/date 2014-01-02 14:34:51 +01:00
Thijs Schreijer
b1d874b09a reverted to already published rockspec 2014-01-02 14:34:22 +01:00
Thijs Schreijer
c5eaf756ec initial test setup using busted 2014-01-02 14:30:47 +01:00
Thijs Schreijer
775332125a Merge pull request #3 from clarkjc/master
Fixed and/or problem in dobj.__lt and dobj.__le
2014-01-02 05:27:38 -08:00
John Clark
5c2e70f0dc Fixed and/or problem in dobj.__lt and dobj.__le
This snippet demonstrates the problem:

local date = require "date"
local a = date("20131230 00:57:04")
local b = date("20131230 01:00:00")
print(a >= b) -- should be false
2013-12-30 16:27:05 -05:00
Thijs Schreijer
8d0f6e394e renamed back 2013-12-23 11:58:44 +01:00
Thijs Schreijer
ca9f9fa83e fix rockspec 2013-12-23 11:58:14 +01:00
Thijs Schreijer
2566e26fd0 renumbered rockspec file 2013-12-22 07:48:08 +01:00
Thijs Schreijer
722a6220eb update rockspec Lua versions supported 2013-12-22 07:47:29 +01:00
Brendan Gilmore
24767d1523 Update date-2.1.0-1.rockspec
fix dependency to support lua 5.1 or 5.2
2013-12-13 12:53:18 -06:00
Thijs Schreijer
fe6eda1482 fix dependencies in rockspec 2013-09-16 22:12:12 +02:00
Thijs Schreijer
097dad2152 fixed bad patterns for 5.2
updated rockspec for 2.1 release
2013-09-16 22:05:29 +02:00