Skip to content

Commit

Permalink
📝 [Doc] README: update example with latest feature, and upgrade to v1…
Browse files Browse the repository at this point in the history
….2.7
  • Loading branch information
Hansimov committed Dec 3, 2024
1 parent 49fd988 commit cce2d91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ def test_now_and_timezone():
# Asia/Shanghai
set_timezone("Asia/Shanghai")
logger.success(get_now_str())
# Compare
dt1 = tcdatetime.fromisoformat("2024-12-03 12:00:00")
dt2 = tcdatetime(year=2024, month=12, day=4)
dt3 = tcdatetime.max()
logger.note(f"dt1: {dt1}, dt2: {dt2}, dt3: {dt3}")
cp12 = "<" if dt1 < dt2 else ">"
cp23 = "<" if dt2 < dt3 else ">"
cp13 = "<" if dt1 < dt3 else ">"
logger.success(f"dt1 {cp12} dt2; dt2 {cp23} dt3; dt1 {cp13} dt3")


def test_dt_to_str():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tclogger"
version = "1.2.6.1"
version = "1.2.7"
authors = [
{ name="Hansimov" },
]
Expand Down

0 comments on commit cce2d91

Please sign in to comment.