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 |
|---|
|
A simple calculator.
Must be in calculator.php
|
|
Calculate anyone's age without worrying about the Unix Epoch
|
|
Returns age in array containing years, months, days,
|
|
I had to come up with a way to generate an average call time. Simple enough I suppose. Hope it's usefull to someone.
|
|
This calculates the moonphases in a year.
|
|
This function will take the date of birth in a time format (from mktime() function) and convert it into age in years, months, and days.
|
|
Date_Calc - a class for manipulating and comparing Calendar dates, as well as formulating arrays of dates for traditional calendar display.
|
|
Returns age of person by the person's birth date.
|
|
Calculates number of years since input date.
|
|
This is a function which I find usefull when I need two timestamps corresponding to the First and Last days of a specified month.
Especially usefull when you have dates stored in a database (as timestamps) and you need to SELECT all records BETWEEN two dates.
|
|
Simple Birthdate-Age function. Given three parameters (month, day, year), it will return a correct age as an integer, doesn't rely on Timestamp.
<br><br>You can give it another three parameters as the date to compare it to, i.e. it will return the age at a given date. Presumes current date.
<br><br>For sanity if given two-digit years presumes date was in 20th century.
Hope you find it useful. Not exactly rocket science.
|
|
This code will give you the sunrise and sunset times for any latutude and longitude in the world. You just need to supply the latitude, longitude and difference from GMT.
|
|
Tells you how long there is until a given time
|
|
The purpose of this script is to be able to return the time span between any two specific moments in time AFTER the Unix Epoch (January 1 1970) in a human-readable format. You could, for example, determine your age, how long you have been married, or the last time you... you know. ;)
The class, "timespan", will produce variables within the class respectively titled years, months, weeks, days, hours, minutes, seconds.
|
|
Returns UK Tax week (according to UK Inland Revenue rules) when passed a date. Not exciting, but useful!
|
|
A Set of Functions that allow you to figure out what week a certain day of the month falls on. So if a date is on the 1st week of the month, 2nd week, etc.
|
|
simple function to calculate eastersunday. input is the year you wish calculate. output is the day of eastersunday and the eastermonth.
|