I've done a LOT of work with time over the years and it's actually fairly simple. Just like Tony, I have no idea what you're referencing here but I do see by your error that you have a "bad value".
Working from your error and the variables (trytime, now, x) it contains, the following code works famously.
now = TimeYmdHms( )
Display (5, "5 second display", "Do something for 5 seconds")
trytime = TimeYmdHms( )
x = TimeDiffSecs(trytime, now)
Message ("Seconds Passed",x)
A good place to start is to search for "Time Functions" in the Consolidated WIL Help file. There are plenty of examples as well as explanations of the various time functions.
