{"id":18712922,"url":"https://github.com/sandjelkovic/kxjtime","last_synced_at":"2025-08-13T18:35:03.023Z","repository":{"id":78769783,"uuid":"137332667","full_name":"sandjelkovic/kxjtime","owner":"sandjelkovic","description":"Kotlin extension library wrapping java.time API","archived":false,"fork":false,"pushed_at":"2021-11-08T10:15:17.000Z","size":97,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T16:41:49.763Z","etag":null,"topics":["date-time","duration","extensions","kotlin","time","utilities","utils"],"latest_commit_sha":null,"homepage":"https://www.sandjelkovic.com/kxjtime/kxjtime/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandjelkovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-14T08:55:54.000Z","updated_at":"2022-10-03T15:51:39.000Z","dependencies_parsed_at":"2023-04-04T15:20:16.925Z","dependency_job_id":null,"html_url":"https://github.com/sandjelkovic/kxjtime","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sandjelkovic/kxjtime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandjelkovic%2Fkxjtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandjelkovic%2Fkxjtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandjelkovic%2Fkxjtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandjelkovic%2Fkxjtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandjelkovic","download_url":"https://codeload.github.com/sandjelkovic/kxjtime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandjelkovic%2Fkxjtime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270288919,"owners_count":24558887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date-time","duration","extensions","kotlin","time","utilities","utils"],"created_at":"2024-11-07T12:44:22.816Z","updated_at":"2025-08-13T18:35:02.925Z","avatar_url":"https://github.com/sandjelkovic.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.sandjelkovic.kxjtime/kxjtime/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.sandjelkovic.kxjtime/kxjtime/)\n[![pipeline status](https://gitlab.com/sandjelkovic/kxjtime/badges/develop/pipeline.svg)](https://gitlab.com/sandjelkovic/kxjtime/commits/develop)\n[![Build Status](https://travis-ci.com/sandjelkovic/kxjtime.svg?branch=master)](https://travis-ci.com/sandjelkovic/kxjtime)\n\n# KxjTime\nKxjTime is a micro library that provides a convenient way to create [java.time API](https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html) objects.\n\n## Usage\nSimplify creation of various objects from `java.time` API.\n#### Extensions for Integers and Longs \nCreate [Duration](https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html) from Integers\n```kotlin\nval thirtyMinutes = 30.minutes\nval twoMilliseconds = 2.milliseconds\n```\nWhich can be then combined by Kotlin overloaded operators or with infix `and`\n```kotlin\nval duration1 = 10.days + 1.hours + 5.minutes + 3.seconds\nval duration2 = 10.days and 1.hours and 5.minutes and 3.seconds\n```\n#### Natural language \nCombine [Duration](https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html) with Time-based classes \n```kotlin\nval createdAt = 10.days and 1.hours and 5.minutes before ZonedDateTime.now()\nval willDoSomethingAt = 30.minutes + 10.seconds + 3.hours after Instant.now()\n```\nReadable and concise code\n```kotlin\nif (createdAt.isBefore(30.minutes + 10.seconds + 3.hours after now)) {\n    // do something\n}\nif (now.isAfter(12.hours after scheduledTime)) {\n    // do something later\n}\n```\n\n## Deprecation note\nWith the recent releases of Kotlin time library this library is not needed anymore if you use newer Kotlin versions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandjelkovic%2Fkxjtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandjelkovic%2Fkxjtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandjelkovic%2Fkxjtime/lists"}