From 79f0b49ee02cb930571a6721c2e82059e69dcf37 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Thu, 26 Dec 2024 14:57:09 +0800 Subject: [PATCH] Add more cljs-time bindings --- bb.edn | 2 +- features/cljs-time/src/nbb/impl/cljs_time.cljs | 7 +++++-- yarn.lock | 8 ++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 yarn.lock diff --git a/bb.edn b/bb.edn index 89a39fe..87d108c 100644 --- a/bb.edn +++ b/bb.edn @@ -2,7 +2,7 @@ :deps {nbb.build/nbb.build {:git/url "https://github.com/babashka/nbb" - :git/sha "2f0f645ae685f02a6c54974f444dfee2a16657eb" + :git/sha "83e2684e86319543aca815a9a7c373d0de7fd487" :deps/root "build"} #_{:local/root "../nbb/build"} nbb/nbb diff --git a/features/cljs-time/src/nbb/impl/cljs_time.cljs b/features/cljs-time/src/nbb/impl/cljs_time.cljs index 14ce989..5300455 100644 --- a/features/cljs-time/src/nbb/impl/cljs_time.cljs +++ b/features/cljs-time/src/nbb/impl/cljs_time.cljs @@ -24,12 +24,15 @@ Remaining fns are used by the community" 'days (copy-var t/days core-ns) 'today (copy-var t/today core-ns) 'minus (copy-var t/minus core-ns) - 'plus (copy-var t/plus core-ns)}) + 'plus (copy-var t/plus core-ns) + 'to-default-time-zone (copy-var t/to-default-time-zone core-ns)}) (def coerce-namespace "Only to-long is used by logseq.graph-parser" {'to-long (copy-var tc/to-long coerce-ns) - 'from-long (copy-var tc/from-long coerce-ns)}) + 'from-long (copy-var tc/from-long coerce-ns) + 'to-local-date (copy-var tc/to-local-date coerce-ns) + 'to-local-date-time (copy-var tc/to-local-date-time coerce-ns)}) (def format-namespace "All fns in this ns are used by logseq.graph-parser" diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..4c3ee1e --- /dev/null +++ b/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +import-meta-resolve@^2.1.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-2.2.2.tgz#75237301e72d1f0fbd74dbc6cca9324b164c2cc9" + integrity sha512-f8KcQ1D80V7RnqVm+/lirO9zkOxjGxhaTC1IPrBGd3MEfNgmNG67tSUO9gTi2F3Blr2Az6g1vocaxzkVnWl9MA==