Clear-KFDataTime
Syntax
Clear-KFDateTime
[-ThrowErrors[:$true]]
Support
>= kenaflow 2.0.0
Return
Nothing.
Description
This is a tool cmdlet for debugging.
Together with Get-KFDateTime
and Set-KFDateTime
this cmdlet can be used to simulate time differences in a debugging context. First you set a time difference with Set-KFDateTime
that is relative to the current time. When you get the time using Get-KFDateTime
the difference is added or substracted from the current time. In combination with Get-KFInDebug
you can simulate a workflow run "later" or "earlier", e.g. if you check time stamps against the current time.
With Clear-KFDataTime
you can clear the previously set time difference.
Parameters
[-ThrowErrors[:$true]]
This is a default parameter for all kenaflow cmdlets. If set to
$true
(default!) the engine will pass exception within the cmdlet to the script for further handling.
Example
Clear-KFDataTime