我想验证我的时间戳.我附上了代码片段:
import org.apache.flink.streaming.api.windowing.time.Time;
Date date = new Date(Time.seconds(30).toMilliseconds());
DateFormat formatter = new SimpleDateFormat("HH:mm:ss:SSS");
String dateFormatted = formatter.format(date);
logger.debug(Time.seconds(30).toMilliseconds() + " " + dateFormatted);
Run Code Online (Sandbox Code Playgroud)
事实证明,结果是:
30000 01:00:30:000
Run Code Online (Sandbox Code Playgroud)
编辑:
[user@hdp ~]$ date
Thu Jun 29 11:39:27 CEST 2017
Run Code Online (Sandbox Code Playgroud)
我错过了什么?谢谢!
我想有一些方法,如何上传文件(可以是没有 php 的 html,或者一些交互式的 azure 上传页面,等等),并通过我的 URL 参数发送参数,该参数将运行其余的代码使用这个上传的文件(ofc 我至少需要将它保存到 blob)。
我需要一个 rest api,所以我选择了 azure 函数。
有没有办法在python中做到这一点?我在 C# 中看到了很多示例,但是 Python 的文档有限。
多谢!