Get DateTime action - manipuilate?

Hello,

I'm a novice in FinalBuilder, and I'm having what is probably a simple mistake on my part:

I'm sending a mail message at the end of the build, and on this message I want to send the duration of the build. I used the Get DateTime at the start to store the start time, and now wanted to use the GetDate Date, with the Manipulate block configured to calculate the build duration. However, the Manipulate Block, which is shown in the documentation, doesn't appear in the Get DateTime window.

The help page is: Actions Reference > Misc Actions > Get DateTime Action

I'm using FB5.5.0.518

 

Thanks in advance,

João Pedro Martins

Hi Joao,

I'm terribly sorry. A couple of features which are intended for the next major version of FinalBuilder accidentally got included into the help file for the current release. This was one of them.

The reason you couldn't find this option is because it doesn't exist yet. The changes were extremely minor so we didn't actually notice they were included until today.

I've attached a zip file with an example project which uses some JavaScript to calculate the difference between two datetimes, and output it as a string. You should be able to cut and paste the "Calculate Build Duration" action into your current project to use it.

See the comment at the top of the "OnExecute" script event in the action for information on what variable names to use (or you can change them in the script itself.). Feel free to ask me if you need any more help.

Once again, I'm really sorry for the inconvenience.

Regards,

Angus

Build Duration.zip (2.193 KB)