简体   繁体   English

Rapidminer:转换unix时间戳

[英]Rapidminer : converting unix timestamp

Does anybody know a way to convert unix timestamp to date_time attribute? 有没有人知道将unix时间戳转换为date_time属性的方法?

I tried to use R extensions (my operators are mainly written in R) such as as.POSIXct functions to convert timestamps but it seems that rapidminer doesn't like it and keeps ignoring it. 我尝试使用R扩展(我的运算符主要用R编写),例如as.POSIXct函数来转换时间戳,但似乎rapidminer不喜欢它并且一直忽略它。

Any help is appreciated 任何帮助表示赞赏

Thanks 谢谢

A little known feature of generating attributes is that the input attribute can be the output attribute so no new one is created. 生成属性的一个鲜为人知的特性是输入属性可以是输出属性,因此不会创建新属性。 In addition, the type of the attribute is changed. 此外,属性的类型也会更改。

In other words, a construction like this would work as long as the input is milliseconds since the epoch. 换句话说,只要输入是自纪元以来的毫秒,这样的结构就可以工作。

unixtime = date_parse(unixtime) unixtime = date_parse(unixtime)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM