The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
date format and date_add
Samuel_Schwarze
Member Posts: 2 Contributor I
Hello,
I have a problem with a macro with the name time_frame. Its value is set on 27/07/2015 1:00:00 AM
In a loop I want to increase this marco with each loop by 5 Minutes. I tried: date_add(%{time_frame},5,DATE_UNIT_DAY), but that doesnt work.
The failure message is: Invalid argument type for 'date_add'. first argument must be Calendar
So the question is, where is the mistake?
Thank you in advance,
Samuel
I have a problem with a macro with the name time_frame. Its value is set on 27/07/2015 1:00:00 AM
In a loop I want to increase this marco with each loop by 5 Minutes. I tried: date_add(%{time_frame},5,DATE_UNIT_DAY), but that doesnt work.
The failure message is: Invalid argument type for 'date_add'. first argument must be Calendar
So the question is, where is the mistake?
Thank you in advance,
Samuel
0
Answers
the first argument needs to be of type date. This means it needs to be in rapidminer date (milliseconds since 1970). You can use the parsing functions to convert your date into a RM date.
Cheers,
Martin
Dortmund, Germany
Sry, I am a bloody newcomer. Thank you
you are looking for this: Regards,
Marco