15 min after datetime

To add comments, please log in or register
Thierry Ramaniraka
540
Thierry Ramaniraka  

Hi there,
I need to find time after a "datetime".
Exactly 15 min after a by-hand-pre-defined datetime.

The datetime is not a multiple of "15 min".
It begins 1 min before the previous hour and it ends 15 min after.
here in the image below what i need to do :

How can I do this please ?

Kind regards.

kypa
1079
kypa  

datetime is just a big integer, add 15*60 to your predefined time

Also you can use 15*MathFloor(somedatetime/15) for beginning of 15 min candle or TimeToStruct for properly defined hours and minutes.

Thierry Ramaniraka
540
Thierry Ramaniraka  
kypa:

datetime is just a big integer, add 15*60 to your predefined time

Also you can use 15*MathFloor(somedatetime/15) for beginning of 15 min candle or TimeToStruct for properly defined hours and minutes.

Thank you, I will search this way.

See you soon.

To add comments, please log in or register