mirror of
https://github.com/TangentFoxy/lua-date.git
synced 2025-07-27 18:42:18 +00:00
release 2.2.1
This commit is contained in:
24
README.md
24
README.md
@@ -37,6 +37,7 @@ Tests are located in the `spec` directory and can be run using [busted](http://o
|
|||||||
- `README.md` (at the top)
|
- `README.md` (at the top)
|
||||||
- `date.lua` (at the top, and exported field `date.version`)
|
- `date.lua` (at the top, and exported field `date.version`)
|
||||||
- `index.html` (appr. line 20)
|
- `index.html` (appr. line 20)
|
||||||
|
- update changelog below
|
||||||
- update rockspec
|
- update rockspec
|
||||||
- commit as `release x.y.z` (omit trailing 0)
|
- commit as `release x.y.z` (omit trailing 0)
|
||||||
- tag as `version_x.y.z` (omit trailing 0)
|
- tag as `version_x.y.z` (omit trailing 0)
|
||||||
@@ -45,9 +46,20 @@ Tests are located in the `spec` directory and can be run using [busted](http://o
|
|||||||
|
|
||||||
### Changes:
|
### Changes:
|
||||||
|
|
||||||
- v2.2 add 'centuryflip' to set 2 digit year interpretation [#26](https://github.com/Tieske/date/pull/26)
|
#### v2.2.1 released 6-Sep-2023
|
||||||
- v2.1.3 fix rockspec for Lua 5.4
|
- fix parsing timezone offset after a decimal number [#33](https://github.com/Tieske/date/pull/33)
|
||||||
- v2.1.2 fix scientific notation [#9](https://github.com/Tieske/date/pull/9), now available for Lua 5.3
|
- also accept "," as a decimal separator [#31](https://github.com/Tieske/date/pull/31)
|
||||||
- v2.1.1 fix for '>=' operator [#3](https://github.com/Tieske/date/pull/3), added test suite, added Travis CI, license MIT
|
- fix bad function call (no functional impact) [#34](https://github.com/Tieske/date/pull/34)
|
||||||
- v2.1 Lua 5.2 support. Global 'date' will no longer be set.
|
|
||||||
- v2.0 original by Jas Latrix
|
#### v2.2
|
||||||
|
- add 'centuryflip' to set 2 digit year interpretation [#26](https://github.com/Tieske/date/pull/26)
|
||||||
|
#### v2.1.3
|
||||||
|
- fix rockspec for Lua 5.4
|
||||||
|
#### v2.1.2
|
||||||
|
- fix scientific notation [#9](https://github.com/Tieske/date/pull/9), now available for Lua 5.3
|
||||||
|
#### v2.1.1
|
||||||
|
- fix for '>=' operator [#3](https://github.com/Tieske/date/pull/3), added test suite, added Travis CI, license MIT
|
||||||
|
#### v2.1
|
||||||
|
- Lua 5.2 support. Global 'date' will no longer be set.
|
||||||
|
#### v2.0
|
||||||
|
- original by Jas Latrix
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
<div class="titlepage">
|
<div class="titlepage">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h2 class="title"><a name="id90891" id="id90891"></a>LuaDate v2.2</h2>
|
<h2 class="title"><a name="id90891" id="id90891"></a>LuaDate v2.2.1</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
37
rockspecs/date-2.2.1-1.rockspec
Normal file
37
rockspecs/date-2.2.1-1.rockspec
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
local package_name = "date"
|
||||||
|
local package_version = "2.2.1"
|
||||||
|
local rockspec_revision = "1"
|
||||||
|
local github_account_name = "Tieske"
|
||||||
|
local github_repo_name = package_name
|
||||||
|
local git_checkout = package_version == "dev" and "master" or ("version_"..package_version)
|
||||||
|
|
||||||
|
package = package_name
|
||||||
|
version = package_version .. "-" .. rockspec_revision
|
||||||
|
|
||||||
|
source = {
|
||||||
|
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
|
||||||
|
branch = git_checkout
|
||||||
|
}
|
||||||
|
|
||||||
|
description = {
|
||||||
|
summary = "Date & Time module for Lua 5.x",
|
||||||
|
detailed = [[
|
||||||
|
Pure Lua Date & Time module for Lua 5.x featuring date and time string
|
||||||
|
parsing, time addition & subtraction, time span calculation, support for
|
||||||
|
ISO 8601 dates, local time support, strftime-like formatting.
|
||||||
|
]],
|
||||||
|
license = "MIT",
|
||||||
|
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
"lua >= 5.0, < 5.5"
|
||||||
|
}
|
||||||
|
|
||||||
|
build = {
|
||||||
|
type = "builtin",
|
||||||
|
modules = {
|
||||||
|
date = "src/date.lua"
|
||||||
|
},
|
||||||
|
copy_directories = { "docs" },
|
||||||
|
}
|
@@ -1,7 +1,7 @@
|
|||||||
---------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------
|
||||||
-- Module for date and time calculations
|
-- Module for date and time calculations
|
||||||
--
|
--
|
||||||
-- Version 2.2
|
-- Version 2.2.1
|
||||||
-- Copyright (C) 2005-2006, by Jas Latrix (jastejada@yahoo.com)
|
-- Copyright (C) 2005-2006, by Jas Latrix (jastejada@yahoo.com)
|
||||||
-- Copyright (C) 2013-2021, by Thijs Schreijer
|
-- Copyright (C) 2013-2021, by Thijs Schreijer
|
||||||
-- Licensed under MIT, http://opensource.org/licenses/MIT
|
-- Licensed under MIT, http://opensource.org/licenses/MIT
|
||||||
@@ -201,7 +201,7 @@
|
|||||||
do
|
do
|
||||||
local major = 2
|
local major = 2
|
||||||
local minor = 2
|
local minor = 2
|
||||||
local revision = 0
|
local revision = 1
|
||||||
date.version = major * 10000000 + minor * 10000 + revision
|
date.version = major * 10000000 + minor * 10000 + revision
|
||||||
end
|
end
|
||||||
--#end -- not DATE_OBJECT_AFX
|
--#end -- not DATE_OBJECT_AFX
|
||||||
|
Reference in New Issue
Block a user