Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Java Time API with Clojure

Đang mở
#408 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ệ
Công nghệ
clojure, java
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
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của practicalli/clojure

Tất cả issue của practicalli/clojure

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.