Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Date 如何获取github回购协议的最新发布日期_Date_Github_Discord.js_Release - Fatal编程技术网

Date 如何获取github回购协议的最新发布日期

Date 如何获取github回购协议的最新发布日期,date,github,discord.js,release,Date,Github,Discord.js,Release,对于我的discord.js bot,我想知道最新的GitHub发布日期,但是回购协议在一个组织中是私有的,我想知道一个简单的方法,可能是使用child\u进程。exec可以做到这一点,但我在互联网上找不到任何东西 我只想要日期、时间戳或字符串。您可以通过调用 那么答案将包括: "created_at": "2013-02-27T19:35:32Z", "published_at": "2013-02-27T19:35:32Z

对于我的discord.js bot,我想知道最新的GitHub发布日期,但是回购协议在一个组织中是私有的,我想知道一个简单的方法,可能是使用
child\u进程。exec
可以做到这一点,但我在互联网上找不到任何东西


我只想要日期、时间戳或字符串。

您可以通过调用

那么答案将包括:

"created_at": "2013-02-27T19:35:32Z",
"published_at": "2013-02-27T19:35:32Z",
发布日期应为您想要的日期

"created_at": "2013-02-27T19:35:32Z",
"published_at": "2013-02-27T19:35:32Z",