Skip to content

Commit

Permalink
Add more cljs-time bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 26, 2024
1 parent 5c52c28 commit 79f0b49
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions features/cljs-time/src/nbb/impl/cljs_time.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -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==

0 comments on commit 79f0b49

Please sign in to comment.