{"size": 162, "ext": "js", "max_stars_repo_path": "src/plugin/date/dateFormat.js", "max_stars_repo_name": "lichaozhy/sdl", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/plugin/date/dateFormat.js", "max_issues_repo_name": "lichaozhy/sdl", "max_issues_repo_issues_event_min_datetime": "2021-05-06T16:02:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T22:45:25.000Z", "max_forks_repo_path": "src/plugin/date/dateFormat.js", "max_forks_repo_name": "lichaozhy/sdl", "max_forks_repo_forks_event_min_datetime": "2019-06-10T09:54:46.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-10T09:54:46.000Z"}
{"max_stars_count": null, "max_issues_count": 10, "max_forks_count": 1, "avg_line_length": 18.0, "max_line_length": 39, "alphanum_fraction": 0.6234567901}
import dateFormat from 'dateformat';

export default function format(time) {
	if (!time) {
		return '-------------';
	}

	return dateFormat(time, 'yyyy/mm/dd');
}