scaper12123
9 years agoVisitor
How to check for time differences?
Is there a quick and simple way to compare two roDateTime objects and find the time difference between them? I intend to do this to get the duration of a timer. While I'm thinking about it, is there also an easy and simple way to display a countdown to match the timer or does that require a manual touch?
EDIT: What I'm trying is using the AsSeconds functionality of roDateTime to determine the time between the two values. Specifically, this is the code I have:
I'm not sure if this will work, however. If anybody has any suggestions or if they believe this idea WOULD work, I would love to hear it in order to boost my confidence here.
EDIT: What I'm trying is using the AsSeconds functionality of roDateTime to determine the time between the two values. Specifically, this is the code I have:
'stream_dt represents the date and time of a planned event, current_dt represents the system's date and time
'values are pre-adjusted to account for time-zone differences
timeLeft = AsSeconds(stream_dt) - AsSeconds(current_dt)
I'm not sure if this will work, however. If anybody has any suggestions or if they believe this idea WOULD work, I would love to hear it in order to boost my confidence here.