小编la_*_*_it的帖子

30秒似乎是1小时30秒?

我想验证我的时间戳.我附上了代码片段:

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)

我错过了什么?谢谢!

java time apache-flink

2
推荐指数
1
解决办法
81
查看次数

如何在html页面中上传文件,使用python在azure函数中使用http触发器?

我想有一些方法,如何上传文件(可以是没有 php 的 html,或者一些交互式的 azure 上传页面,等等),并通过我的 URL 参数发送参数,该参数将运行其余的代码使用这个上传的文件(ofc 我至少需要将它保存到 blob)。

我需要一个 rest api,所以我选择了 azure 函数。

有没有办法在python中做到这一点?我在 C# 中看到了很多示例,但是 Python 的文档有限。

多谢!

python rest azure azure-functions

1
推荐指数
1
解决办法
1983
查看次数

标签 统计

apache-flink ×1

azure ×1

azure-functions ×1

java ×1

python ×1

rest ×1

time ×1