{"id":13674113,"url":"https://github.com/ming680/ngDateTimePicker","last_synced_at":"2025-04-28T14:30:39.205Z","repository":{"id":128372400,"uuid":"107857170","full_name":"ming680/ngDateTimePicker","owner":"ming680","description":"一个适用于Angular1.X的dateTimePicker","archived":false,"fork":false,"pushed_at":"2017-11-30T07:31:30.000Z","size":324,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T14:02:02.731Z","etag":null,"topics":["angular","datetimepicker"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ming680.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":"2017-10-22T10:42:52.000Z","updated_at":"2022-03-16T17:59:48.000Z","dependencies_parsed_at":"2024-06-19T16:01:18.196Z","dependency_job_id":null,"html_url":"https://github.com/ming680/ngDateTimePicker","commit_stats":null,"previous_names":["ming680/ngdatetimepicker","xumingzhi9/ngdatetimepicker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ming680%2FngDateTimePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ming680%2FngDateTimePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ming680%2FngDateTimePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ming680%2FngDateTimePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ming680","download_url":"https://codeload.github.com/ming680/ngDateTimePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251330115,"owners_count":21572230,"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":["angular","datetimepicker"],"created_at":"2024-08-02T11:00:41.092Z","updated_at":"2025-04-28T14:30:38.859Z","avatar_url":"https://github.com/ming680.png","language":"JavaScript","readme":"# ngDateTimePicker\n一个适用于Angular1.X的dateTimePicker \n\n![](public/images/screen1.png)\n\n\nUsage\n-------------\n\n```\n//引入css文件\n\n  \u003clink href='dist/tpl-ngDateTimePicker.css'\u003e\u003c/link\u003e\n....  \n\n//在引入angular.js后引入 tpl-ngDateTimePicker.js\n\n  \u003cscript src='dist/tpl-ngDateTimePicker.js'\u003e\u003c/script\u003e\n```\n## ngDateTimePicker\n```\n\u003cng-date-time-picker ng-model='datetime' format='yyyy-MM-dd HH:mm:ss' selected='selected()'\u003e\u003c/ng-date-time-picker\u003e\nangular.module('myApp',['ngDateTimePicker'])\n.controller('myCtrl',function($scope){\n  $scope.selected = function(){\n    console.log('选择 完毕 可以自行选择 移除或隐藏')\n  }\n})\n\n//ng-model 若值转换成时间为 Invalid Date 转为此刻时间\n//format 属性可选 若无datetime值为时间戳\n```\n## ngDateTimePicker-popup\n```\nangular.module('myApp',['ngDateTimePicker'])\n.controller('myCtrl',function($scope, ngDateTimePicker){\n  $scope.show = function(ev){\n    ngDateTimePicker.open({\n      $scope : $scope,\n      ngModel : 'datetime',   //双向数据绑定\n      position : ev.target,    //显示在某元素的位置下\n      format : 'yyyy-MM-dd HH:mm:ss' //绑定元素输出的格式  若无该属性，格式为时间戳\n\t                             //所支持的格式 见 angular 内置date 过滤器\n      })\n  }\n})\n```\n\n","funding_links":[],"categories":["UI Components"],"sub_categories":["Tooltip"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fming680%2FngDateTimePicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fming680%2FngDateTimePicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fming680%2FngDateTimePicker/lists"}