# Determine where I am in array of seconds

**URL:** https://forum.kirupa.com/t/determine-where-i-am-in-array-of-seconds/290100
**Category:** flash
**Created:** [June 9, 2009, 7:08pm UTC](https://forum.kirupa.com/t/determine-where-i-am-in-array-of-seconds/290100 "2009-06-09T19:08:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [June 9, 2009, 7:08pm UTC](https://forum.kirupa.com/t/determine-where-i-am-in-array-of-seconds/290100/1 "2009-06-09T19:08:20Z")

</div>

I have an array of times that I used to add cue points…

I have a Timecode In and a Timecode Out. My video is 50 minutes long. When I seek I need to determine which timecodes I am between.

so say I have this:

```auto

[
{in:0,out:300},
{in:300,out:400},
{in:400,out:600}
]

```

and I seek to 324 seconds…I need to somehow determine that I am in the second object (or [1]) in the array because it is between 300 and 400…how can I do that?
