From 0b8f7b6d2601e50610472dd05bf3d5a81ddb1081 Mon Sep 17 00:00:00 2001 From: Hansimov <591172499@qq.com> Date: Mon, 27 Jan 2025 17:19:06 +0800 Subject: [PATCH] :pencil: [Doc] README: update example with latest feature, and upgrade to v1.2.10 --- README.md | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c61824b..197686c 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,9 @@ def test_dt_to_str(): dt3 = timedelta(seconds=3600 * 8 + 60 * 24 + 12) logger.note(f"dt3: {logstr.success(dt_to_str(dt3))}") dt4 = timedelta(seconds=3600 * 24 * 1 + 3600 * 8 + 60 * 24 + 12) - logger.note(f"dt4: {logstr.success(dt_to_str(dt4))}") + logger.note(f"dt4: {logstr.success(dt_to_str(dt4, precision=3))}") + dt5 = 360100.123 + logger.note(f"dt5: {logstr.success(dt_to_str(dt5, precision=3))}") t_ts = 1700000000 t_ts, t_str = unify_ts_and_str(t_ts) diff --git a/pyproject.toml b/pyproject.toml index 904ad8d..9e0da1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tclogger" -version = "1.2.9.1" +version = "1.2.10" authors = [ { name="Hansimov" }, ]