class to measure time intervals in microseconds. You can take times during a code run and at the end get a time table as HTML or text table. The output will contain total and
as delta between each take in microseconds.
Works with date and time, supports fiscal dates and can convert from a myriad of string formats to various system formats. Also does date and time differences.
This is a quick function I wrote to parse out the 'microtime()' feature, and deal with the results mathmatically. Since microtime() returns the milliseconds, then a space,
then the unix timestamp, using the results from microtime() itself weren't conducive to quick math. We had some pages here that we needed to time down to the millisecond, so
we used this. :)
These functions allow you to define a calendar of holidays and find which one comes up next. Holidays can be defined as fixed, or floating (eg. 3d sunday of june.)
Give this function two dates, of format YYYY-MM-DD and it will print a friendly intelligent string. ie it only print date elements that are different between the two dates.
Web based calendar. The calendar has 2 functions. The first is to view the whole month, the second is used when you click on a specific day in the month, which will then take
you to the hour breakout for that day and the previous and next day
Time your PHP scripts. I took the "dealing with microtime" function and created a class. Now it is easy to start, stop and print out the elapsed time. Great for timing PHP
scripts.
nextmonth() returns a time number corresponding to the date one month from the passed time. It is different from strtotime("next month"). Function takes care of the leap year.
E.g. for Jan 31, 2000, strtotime("next month") returns 2000-03-02 whereas nextmonth() returns 2000-02-29
PHP_Scheduler is a very simple class for storing timestamps at application-level. It can be useful in situations such as "I want to update a file not more than once every 15
minutes" or "I want to cache a database query and refresh it every 30 minutes." The class is very simple to use, simply look at the example. Feel free to contact me via email
with questions/suggestions/bug reports.
This class allow very precise timing based on microtime() function, in a two-step very simple operation: Call it from your code with include("timer.class.php4"), Then start
and stop timer before and after your code.
Small calendar that displays the days, month, and abbrev. year. Allows the user to move forward and backward one month or one year, and quickly return to today's view.
This simple class gives stopwatch style functionality, including split times, to enable the timing of functions. It's easy to understand and use (I think!), but you could
easily expand it.