Jump to content

Problem with Time


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

Recommended Posts

I'm having a little problem completing a graphic interface

I have a start time and end time

The graphic displays the start and end time

I have managed to display the hours ... but want to refine it to the quarter hour.

i have managed to work out a way of doing it (by hard coding the results 0 to 4 (x:00=0, x:15=2, x:30=3, x:45=4)... but can not get my calc to work. (notes in calculation)

I will further refine it by changing the calc by rounding the minutes to the quarter hour after resolving this.

I would also like to put the left and right graphic on either end of the time block ... but will tackle this afterwards

Any help would be great ... i think that i can not see the wood for the trees.

Oh and if you can see an even simpler way of achieving this im all ears.

File Attached

best

Stuart

TimeBlock.fp7.zip

Edited by Guest
Link to comment
Share on other sites

Something like this?

Let ( [

s = Round ( Extend ( Start_Time ) / 900 ; 0 ) ;

e = Round ( Extend ( End_Time ) / 900 ; 0 ) ;

i = Get ( CalculationRepetitionNumber ) - 1

] ;

GetRepetition ( Graphics ; 1 + ( i ≥ s ) + ( i ≥ e ) )

)

Edited by Guest
Link to comment
Share on other sites

This topic is 5691 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.