# How to list jobs in given time

**URL:** <https://community.openpbs.org/t/how-to-list-jobs-in-given-time/3038>\
**Category:** Users/Site Administrators\
**Created:** [March 16, 2022, 10:14am UTC](https://community.openpbs.org/t/how-to-list-jobs-in-given-time/3038 "2022-03-16T10:14:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boboshaq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@boboshaq](https://community.openpbs.org/u/boboshaq)\
**Post date:** [March 16, 2022, 10:14am UTC](https://community.openpbs.org/t/how-to-list-jobs-in-given-time/3038/1 "2022-03-16T10:14:15Z")

</div>

Hi!  
Can I somehow get list of jobs which was running in given time span?  
E.g. I want to know which jobs was running since 01/01/2020 00:00 until 01/03/2020 00:00 (format: MM/DD/YYYY HH:MM)  
Is it possible?

Regards!

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [March 17, 2022, 8:57am UTC](https://community.openpbs.org/t/how-to-list-jobs-in-given-time/3038/2 "2022-03-17T08:57:53Z")

</div>

Please try **man qselect** command for more information

` qselect -x -ts.gt.0101200000 -te.lt.0103200000`

---

<div class="post-metadata">

**Author:** ![boboshaq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@boboshaq](https://community.openpbs.org/u/boboshaq)\
**Post date:** [April 19, 2022, 9:57am UTC](https://community.openpbs.org/t/how-to-list-jobs-in-given-time/3038/3 "2022-04-19T09:57:33Z")

</div>

Thank You for information about qselect command.

In my case, command that working is:  
`qselect -x -ts.gt.2001010000 -ts.lt.2003020000`

Information from manual about datetime format and s and e time options:

> The date and time argument has the format:  
> [[CC]YY]MMDDhhmm[.SS]  
> where the MM is the two digits for the month, DD is the day of the month, hh is the hour, mm is the minute, and the optional SS is the seconds. CC is the century and YY the year.

> ```
> s stime Timestamp; time the job started.
> Updated when job is restarted. Printed
> by qstat in human-readable format.
> Output in hooks as seconds since epoch.
> 
> ```

> ```
> e etime Timestamp; time when job became
> eligible to run, i.e. was enqueued in
> an execution queue and was in the "Q"
> state. Reset when a job moves queues,
> or is held then released. Not affected
> by qaltering. Printed by qstat in
> human-readable format. Output in hooks
> as seconds since epoch.
> 
> ```

Regards!
