Archive for the ‘Date and Time’ Category

Bs_StopWatch

A 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. For a howto go to: http://www.blueshoes.org/howto/Bs_StopWatch.pdf

Visit this Script

Digital Clock

This is a PHP script for displaying the current time in a digital clock on your web page. It uses individual digit images for the clock, and does not require any special library.

Visit this Script

Date and day of the week in php

This easy script shows the date with the day of the week. Simply use a php include where you want it to show on your site and can be translated to another language. Really easy to use and to customize

Visit this Script

Bob’s DateCalculator

Calculate a date by adding or subtracting a certain number of days. Choose from different outputs. You can change, distribute or even sell the script.
Visit this Script

RD Week(end) message

Message depending on the day of the week Basicly is made to show visitors a message on friday introducing the weekend and in the days of the week end telling them to enjoy there day You may add more ifs as much as u need

Visit this Script

PHP Script Timer

Measure PHP execution time using this small and simple script. PHP typically executes very quickly, though some code takes significant time to execute, i.e. retrieving and parsing remote files, image manipulations, complex and/or multiple SQL queries, etc. If code is choking your server’s CPU, or your site visitors are clicking away because your page is taking too long to respond, use this PHP script to highlight the bottlenecks. Customizable output; configure any number of runs and display fastest, slowest, and average execution times. With examples.

Visit this Script

ArMktime

This class can be used convert a date in in the Islamic calendar to a timestamp value. It works like the PHP mktime function. It takes a list of parameters to represent the different components of a date and time in the Islamic calendar instead of the Gregorian calendar. The class returns a timestamp integer value after converting the date. This class is part of Khaled Al-Shamaa project for PHP and Arabic language: http://www.al-shamaa.com/ php/arabic

Visit this Script

ArDate

This class can be used to format times and dates in Arabic. It implements functionality similar to PHP date function. It takes as parameters a timestamp integer value and a date format string. The class returns a string formatted represented the given date in Arabic encoded using the Windows-1256 character set. The names of the months, days of the week and AM and PM references are translated into the Arabic equivalents. The class can also convert a data from the Gregorian calendar (represented in timestamp input) into a data Hegri Islamic calendar using same format string of the PHP date function. This class is part of Khaled Al-Shamaa project for PHP and Arabic language: http://www.al-shamaa.com/ php/arabic/

Visit this Script