This is a post I saved as draft as a work in progress. It's pre version 7 but should still be applicable.
Examples showing attributes being generated
Results
Search this blog
Showing posts with label Unixtime. Show all posts
Showing posts with label Unixtime. Show all posts
Sunday, 7 February 2016
Wednesday, 11 January 2012
Convert date to unix timestamp
Use the "Generate Attributes" operator and create an attribute with the following expression.
round (date_diff (date_parse (0), dateToConvert,"en","GMT")/1000)
round (date_diff (date_parse (0), dateToConvert,"en","GMT")/1000)
Thursday, 17 February 2011
Converting unix timestamps in RapidMiner
If you have an attribute (called DateSecondsSince1970 say) containing the number of seconds since 1 Jan 1970 and you want to convert to a date_time attribute, use the "generate attributes" operator as follows.
Create an attribute called DateSince1970 and set it to date_parse(DateSecondsSince1970*1000)
Create an attribute called DateSince1970 and set it to date_parse(DateSecondsSince1970*1000)
Subscribe to:
Posts (Atom)

