Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime Library Implementation #94

Merged
merged 68 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
6d88a7e
feat: initial concept and 20% of implementation
CompeyDev Aug 22, 2023
5df5f10
fix: rename Clock -> DateTime
CompeyDev Aug 22, 2023
5ccab5b
fix: cargo build
CompeyDev Aug 22, 2023
a53927b
feat: converstion method implementations
CompeyDev Aug 22, 2023
40b1494
refactor: minor changes
CompeyDev Aug 23, 2023
2efc0be
feat: finish DateTime implementation
CompeyDev Aug 23, 2023
80341ce
chore(deps): bump chrono_locale rev
CompeyDev Aug 23, 2023
fa4ccc1
chore(deps): update chrono_locale
CompeyDev Aug 23, 2023
3b57d90
fix: tag instead of version
CompeyDev Aug 23, 2023
2a9984f
refactor: include docs & rename some methods
CompeyDev Aug 24, 2023
5bc28c4
chore: remove conflicting files
CompeyDev Aug 24, 2023
8f41ef1
chore: regenerate cargo lockfile
CompeyDev Aug 24, 2023
5fed1a6
chore: resolve merge conflicts
CompeyDev Aug 24, 2023
c260c45
chore: resolve merge conflicts
CompeyDev Aug 24, 2023
b2ac952
merge: origin/main -> feature/datetime
CompeyDev Aug 24, 2023
9443ae1
chore: regenerate lockfile
CompeyDev Aug 24, 2023
ac45d82
fix: export date_time in mod.rs
CompeyDev Aug 24, 2023
a5ed13e
merge: origin/main -> feature/datetime
CompeyDev Aug 24, 2023
c11c059
feat: export most of the DateTime functionality to luau
CompeyDev Aug 25, 2023
eee7a67
merge: origin/main -> feature/datetime
CompeyDev Aug 25, 2023
83eeb77
feat: replace enums with floats for timestamps in millis
CompeyDev Aug 26, 2023
574bc16
feat: implement luau side for more functions
CompeyDev Aug 26, 2023
6943ed0
feat: finish luau side implementation
CompeyDev Aug 26, 2023
dd1c43c
refactor: breakup datetime into multiple modules
CompeyDev Aug 26, 2023
a7833bb
fix: fromUnixTimestamp conversion bug
CompeyDev Aug 27, 2023
c46ae61
feat: include types for @lune/datetime
CompeyDev Aug 27, 2023
28b16b3
chore(tests): include tests for DateTime library
CompeyDev Aug 27, 2023
4768134
chore(docs): add more docs for luau typing
CompeyDev Aug 27, 2023
1219f65
Merge branch 'main' into feature/datetime
CompeyDev Aug 27, 2023
a78ed4e
fix: DateTime::from_iso_date
CompeyDev Aug 27, 2023
6b4000d
Merge branch 'feature/datetime' of https://github.com/0x5eal/lune-dat…
CompeyDev Aug 27, 2023
e4a65e3
feat: proper error handling & error propagation
CompeyDev Aug 28, 2023
c3e456f
chore(tests): finalize and implement missing tests
CompeyDev Aug 28, 2023
09063e2
Merge branch 'main' into feature/datetime
CompeyDev Aug 29, 2023
2b46958
refactor: implement requested changes
CompeyDev Sep 4, 2023
0561b8e
refactor: object declaration syntax in test
CompeyDev Sep 4, 2023
e161ce3
refactor: remove declaration of self consuming methods in exports
CompeyDev Sep 4, 2023
f52aa2d
refactor: remove luau setters for fields in DateTime
CompeyDev Sep 4, 2023
91da9b8
refactor: remove declaration of self consuming methods in exports
CompeyDev Sep 4, 2023
a43c324
refactor: remove declaration of self consuming methods in exports
CompeyDev Sep 4, 2023
1d83af9
refactor: remove declaration of self consuming methods in exports
CompeyDev Sep 4, 2023
d9eca85
refactor: use String instead of LuaString
CompeyDev Sep 4, 2023
e7799cc
refactor: proper error handling w/o panics
CompeyDev Sep 4, 2023
4f2a008
fix: remove unused Lazy import
CompeyDev Sep 4, 2023
f0bbdfd
chore: bump chrono to 0.4.28 to possibly fix month enum mapping
CompeyDev Sep 4, 2023
72f136f
chore(crate): use published chrono locale crate
CompeyDev Sep 6, 2023
eb64247
chore(tests): updated test suite
CompeyDev Sep 6, 2023
2ca9615
feat(types): datetime -> DateTime & fix typing
CompeyDev Sep 6, 2023
87e579a
feat: make complete switch to published chrono_lc crate
CompeyDev Sep 6, 2023
aa73a4b
fix: fromUniversalTime & fromLocalTime
CompeyDev Sep 7, 2023
ac948b2
chore(tests): remove note comments
CompeyDev Sep 7, 2023
6ddaecb
chore(tests): fix toUniversalTime test
CompeyDev Sep 7, 2023
37c8a6f
chore(tests): use fromIsoDate in toUniversalTime test
CompeyDev Sep 7, 2023
829494e
feat: finalized docs, lmk if i missed something
CompeyDev Sep 7, 2023
a5efedc
chore(tests): include local formatTime test with custom locale
CompeyDev Sep 7, 2023
36f2c6e
chore(tests): local formatTime locale test better assert error
CompeyDev Sep 7, 2023
be6b3f4
chore(tests): fix failing test by writing to locale.gen and generatin…
CompeyDev Sep 8, 2023
ee51f18
feat(tests): fix superuser command syntax
CompeyDev Sep 8, 2023
3570e8c
fix(tests): logic for adding custom locale
CompeyDev Sep 8, 2023
e1dbce6
feat(tests): remove test case setup for formatTime
CompeyDev Sep 10, 2023
9800307
chore(tests): include locale setup comment
CompeyDev Sep 10, 2023
d3dd113
fix(tests): import std::process::ExitCode
CompeyDev Sep 10, 2023
fcb2057
fix(tests): put locale tests behind flag lock
CompeyDev Sep 11, 2023
7e285f3
fix: why did I do this again?
CompeyDev Sep 11, 2023
e70cabc
fix: remove match and replace with num-traits `from_u32`
CompeyDev Sep 11, 2023
19270d3
chore(crate): include num-traits dependency
CompeyDev Sep 11, 2023
207af8e
chore: include updated lockfile
CompeyDev Sep 11, 2023
e68d5eb
chore(tests): fix failing test by accounting for minor inaccuracy
CompeyDev Sep 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 138 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ reqwest = { version = "0.11", default-features = false, features = [
] }
tokio-tungstenite = { version = "0.20", features = ["rustls-tls-webpki-roots"] }

### DATETIME
chrono = "0.4.29"
chrono_lc = "0.1.3"
num-traits = "0.2.16"

### CLI

anyhow = { optional = true, version = "1.0" }
Expand Down
Loading