Author: HCA Central Version: 4 Added to Library: 10-Nov-23 HCAVersion needed: 16 Keywords: Utility
Package Description: What's new?
30-Oct-23 Not handling the "withSeconds" aparameter correctly. Fixed.
What's new:
If the elapsed time is less than one minute and even if the showSeconds parameter is NO, the elapsed image shows seconds.
The program is used like this:
x = _now();
<delay 1 minute 10 seconds>
Start-Program with argument x and result assigned to variable "theImage". The variable "theImage" is set to the string "1 minute 10 seconds"
Program Description: Creates the image of the elapsed time from a time mark until the current time.
Displays as "x days x minutes x hours x seconds". And does this in a way that prevent ugly results like "0 minutes" and "1 minutes".
Use the Start-Program element to pass as argument 1 the time mark. The second argument tells if the image should include seconds. If omitted or is set to zero then seconds are omitted from the image. Any other value provides seconds in the image. Pick a variable to assign the result to.
Example: x = _now();
<delay 1 minute 10 seconds>
Start-Program with argument x and result assigned to variable "theImage". The variable "theImage" is set to "1 minute 10 seconds"
Return value: A string with the image elapsed time from the time mark until now
Parameters:
Name | Type | Description | Default |
---|---|---|---|
TimeMark | Value | A date-Time when something happened | |
withSeconds | Value | Should seconds be included in the image? | 0 |