@quenty/time 2.4.2 → 2.4.3-canary.2212d20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/Shared/Time.lua +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.4.3-canary.2212d20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/time@2.4.2...@quenty/time@2.4.3-canary.2212d20.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/time
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.4.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/time@2.4.0...@quenty/time@2.4.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/time",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3-canary.2212d20.0",
|
|
4
4
|
"description": "Library handles time based parsing / operations. Untested. Based off of PHP's time system. Note: This library is out of date, and does not necessarily work. I recommend using os.time()",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "2212d20788e020efac7f701727afc39ade3b45e2"
|
|
31
31
|
}
|
package/src/Shared/Time.lua
CHANGED
|
@@ -277,6 +277,11 @@ function Time.getAMorPM(currentTime: number): "AM" | "PM"
|
|
|
277
277
|
end
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
+
--[=[
|
|
281
|
+
Reports the time in 24 hour format
|
|
282
|
+
@param currentTime number
|
|
283
|
+
@return string
|
|
284
|
+
]=]
|
|
280
285
|
function Time.getMilitaryHour(currentTime: number): string
|
|
281
286
|
local hour = Time.getHour(currentTime)
|
|
282
287
|
if hour < 10 then
|