Java Time API with Clojure
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với trang cú pháp Clojure của Practicalli tại practical.li/clojure/reference/clojure-syntax/more-java-fun.html và phần Reference > Standard Library. Xem xét tick, cljc.java-time, time-literals và clojure.java-time, sau đó thêm phần Date Time với các ví dụ được yêu cầu, các so sánh, hướng dẫn về dependency và phần tóm tắt lựa chọn. Hoàn tất có nghĩa là tài liệu tham khảo giải thích cách sử dụng trực tiếp Java Time API và các lựa chọn thư viện liên quan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Projects
- juxt/tick - time as a value (uses cljc.java-time and time-literals projects under the covers)
- https://github.com/henryw374/cljc.java-time - library for Clojure and ClojureScript projects, with kebab-case named vars and predicate functions
- time-literals
- clojure.java-time - a simple wrapper around the Java Time API
Deprecated projects
- clj-time/clj-time
- joda-time (used as the basis for Java TIme API) - deprecated since Java 8 introduced the Java Time API
References
Practicalli pages to update
https://practical.li/clojure/reference/clojure-syntax/more-java-fun.html
TODO: Add Date Time section to Reference > Standard Library section
- use juxt/tick as the defacto library for both Clojure and ClojureScript projects (tick uses cljc.java-time under the hood)
- add any meaningful comparisions to using cljc.java-time or juxt/tick
- examples of using Clojure.java-time and Java Time API
- using Java Time API directly removed the need for a library dependency
- summary of why to choose one of the mentioned projects
clojure.java-time example
Add clojure.java-time to project deps.edn file
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
clojure.java-time {:mvn/version "0.3.2"}}}
Require java-time namespace.
call local-date-time to get the date and time when the function was called
(ns practicalli.what-time-is-it
(:require [java-time :as time]))
(defn -main []
(println "The time according to Clojure java-time is:"
(time/local-date-time)))
- Ngôn ngữ chính
- Makefile
- Star
- 117
- Fork
- 36
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của practicalli/clojure
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
practicalli/clojure#381 ·
-
Clojure on windowsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
practicalli/clojure#298 ·
-
feat: Clojure fundamentals video seriesCó thể làm lại được @practicalli-johnny đã nhận 210 ngày trước và không có pull request nào đang mở. Đang mởvideo
practicalli/clojure#478 · 1 người được giao ·
-
Spec: add more commonpracticesCó thể làm lại được @practicalli-johnny đã nhận 394 ngày trước và không có pull request nào đang mở. Đang mở
practicalli/clojure#477 · 1 người được giao ·
-
Update: hotload libs in Clojure 1.12Có thể làm lại được @practicalli-johnny đã nhận 448 ngày trước và không có pull request nào đang mở. Đang mở
practicalli/clojure#476 · 1 người được giao ·
Tất cả issue của practicalli/clojure
Issue tương tự
-
raised-by:reviewer
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
medici-finance/assay#2681 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Write the ADR for chat modesĐang mởarchitecture desktop documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Broken links found in docsĐang mởdocs pydanty:is-working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
pydantic/pydantic-ai#10113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
microsoft/vscode-docs#10460 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Portkey-AI/gateway#1844 ·
Maintainer thường phản hồi trong vòng 1 ngày