Jump to content

Checking for time interval?


xoomaster
 Share

This topic is 5668 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Sorry guys, but I am new to this forum.

My question is :

I have a time, say 7:20 AM and want to see if it is within a rage of

{7:00 am..10:00 am} . Am I missing something or there is a easy way of doing this in a script step.

Thank you

Xoomaster

Link to comment
Share on other sites

Three fields:

Time (time) your questioned time

StartTime (time) here you put the 7:00 value

EndTime (time) here you put the 10:00 value

Script:

If [TableName::Time >= TableName::StartTime and TableName::Time <= TableName::EndTime]

Show Custom Dialog ["Check"; "Yes!!"]

Else

Show Custom Dialog ["Check"; "Well eh ... no."]

End If

Link to comment
Share on other sites

You shouldn't need any additional fields for this. It can all be handled within the script using a boolean test. Script step:

If [ Hour ( timeField ) ≥ 7 and Hour ( timeField ) ≤ 10 ]

... do whatever if yes

LaRetta :wink2:

Link to comment
Share on other sites

This topic is 5668 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.