Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
Clock that refresh every 1 sec.
|
|
Give it your birthday and it gives you the day of the week you were born...
|
|
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.
|
|
The offical definition of a website visit in web-marketing is e.g. "user has not clicked on a website for more then 10 minutes".
|
|
A Calender that updates itself.. Might come in handy if you're making a blog or a "Archives Posted this month" or something
|
|
DateSelector creates three SELECT form fields for month, day, and year. The current day is selected unless a date is supplied as the second argument.
|
|
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.
|
|
Check if the time is in some intervals.
|
|
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
|
|
jTimer will give you a way to setup a timer in your php script
|
|
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
|
|
This function returns the number of work days between two dates.
|
|
View round clock in GIF format.
|
|
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.
|
|
Run a contest that ends at a specific date/time
|
|
timespan - creates an associative array based on starttime and endtime. Accepts ISO time format (YYYY-MM-DD HH:MM:SS) or pure seconds.
|
|
checkin' valid date
|