{"id":13643339,"url":"https://github.com/codbking/PickTime","last_synced_at":"2025-04-21T01:32:21.406Z","repository":{"id":154279726,"uuid":"76547472","full_name":"codbking/PickTime","owner":"codbking","description":"一个Android高效日期选择控件，支持（年月日时分星期）等多种模式的控件","archived":false,"fork":false,"pushed_at":"2018-08-07T09:09:56.000Z","size":1798,"stargazers_count":436,"open_issues_count":13,"forks_count":99,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-06T18:17:55.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codbking.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}},"created_at":"2016-12-15T09:55:35.000Z","updated_at":"2024-12-03T06:26:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"c389bc00-90af-4775-a6bb-8d5687f2bc6c","html_url":"https://github.com/codbking/PickTime","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbking%2FPickTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbking%2FPickTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbking%2FPickTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbking%2FPickTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codbking","download_url":"https://codeload.github.com/codbking/PickTime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982608,"owners_count":21355732,"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","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":[],"created_at":"2024-08-02T01:01:46.114Z","updated_at":"2025-04-21T01:32:19.116Z","avatar_url":"https://github.com/codbking.png","language":"Java","readme":"# PickTime\n## 日期选择控件 ##\n\n[![](https://jitpack.io/v/codbking/PickTime.svg)](https://jitpack.io/#codbking/PickTime)\n\n [**apk下载**](https://raw.githubusercontent.com/codbking/PickTime/master/app-debug.apk)\n\n### 截图\n------------------\n\n|TYPE_ALL|TYPE_YMDHM|TYPE_YMDH|TYPE_YMD|TYPE_HM|\n|:--:|:--:|:--:|:--:|:--:|\n|![Alt text](image/all.jpg)|![Alt text](image/ymdhm.jpg)|![Alt text](image/ymdh.jpg)|![Alt text](image/ymd.jpg)|![Alt text](image/hm.jpg)|\n\u003c!--\u003cimg src=\"image/all.jpg\" height=\"320\" width=\"180\" style=\"margin-left:100\"/\u003e--\u003e\n\u003c!--\u003cimg src=\"image/ymdhm.jpg\" height=\"320\" width=\"180\" style=\"margin-left:100\"/\u003e--\u003e\n\u003c!--\u003cimg src=\"image/ymdh.jpg\" height=\"320\" width=\"180\" style=\"margin-left:100\"/\u003e--\u003e\n\u003c!--\u003cimg src=\"image/ymd.jpg\" height=\"320\" width=\"180\" style=\"margin-left:100\"/\u003e--\u003e\n\u003c!--\u003cimg src=\"image/hm.jpg\" height=\"320\" width=\"180\" style=\"margin-left:100\"/\u003e--\u003e\n\n### 效果\n-------------\n\n![Alt text](image/dd.gif)\n\n### DateType\n\n- TYPE_ALL--年、月、日、星期、时、分\n- TYPE_YMDHM--年、月、日、时、分\n- TYPE_YMDH--年、月、日、时\n- TYPE_YMD--年、月、日\n- TYPE_HM--时、分\n\n### how to use\n\n - **Add it in your root build.gradle at the end of repositories:**\n\n```\n\t    allprojects {\n\t\t   repositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t    }\n```\n\n -  **Add the dependency**\n```sh\n\tdependencies {\n\t        compile 'com.github.codbking:PickTime:v1.0.1'\n\t}\n```\n\n -  **java**\n```java\n        DatePickDialog dialog = new DatePickDialog(this);\n        //设置上下年分限制\n        dialog.setYearLimt(5);\n        //设置标题\n        dialog.setTitle(\"选择时间\");\n        //设置类型\n        dialog.setType(DateType.TYPE_ALL);\n        //设置消息体的显示格式，日期格式\n        dialog.setMessageFormat(\"yyyy-MM-dd HH:mm\");\n        //设置选择回调\n        dialog.setOnChangeLisener(null);\n        //设置点击确定按钮回调\n        dialog.setOnSureLisener(null);\n        dialog.show();\n```\n\n\n\n\n","funding_links":[],"categories":["选择器(Picker)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodbking%2FPickTime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodbking%2FPickTime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodbking%2FPickTime/lists"}