Jump to content

Date Intervals


eds0n

Recommended Posts

Hi!

 

I have a bunch of program information from the process table in a mysql db.

 

The data stored is for instance, creation date, process name, userid (owner of processes ) etc.

 

What I want to do is choose a specific process i.e. 'firefox.exe' from a specific user. Find the first date, get all the instances of this program for this day, and then do this in interval of 1 days... and print it.

 

Any pointers? I've tried this by using creationdate<Date_Add(creationdate, Interval 1 day) for testing, did not work. And still, I want process information from within a specific day. For instance, if the process starts for the first time today at 02:00, I want to see the record within the day -> 24:00.. in that instance that would mean 22 hours forward.

 

Does anyone know if this is possible directly in SQL (MySQL) or using PHP?

 

I need this data to calcuate averages and standard deviation on various process parameters.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/45651-date-intervals/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.