Zend - The PHP Company




Calculators

Add Code


A simple calculator !  

Type: application
Added by: orfeuRO
Entered: 31/01/2004
Last modified: 02/12/2003
Rating: - (fewer than 3 votes)
Views: 7594
A simple calculator. Must be in calculator.php


Age Calculation  

Type: code fragment
Added by: mattnorniron
Entered: 02/06/2003
Last modified: 31/10/2006
Rating: *** (5 votes)
Views: 8203
Calculate anyone's age without worrying about the Unix Epoch


Age calculation  

Type: code fragment
Added by: titken
Entered: 19/04/2005
Last modified: 04/12/2004
Rating: **** (3 votes)
Views: 7149
Returns age in array containing years, months, days,


Average Time Calculator  

Type: code fragment
Added by: Plove
Entered: 01/09/2001
Last modified: 09/12/2000
Rating: **** (3 votes)
Views: 31366
I had to come up with a way to generate an average call time. Simple enough I suppose. Hope it's usefull to someone.


Calculate moonphases  

Type: code fragment
Added by: are
Entered: 20/02/2002
Last modified: 31/10/2003
Rating: ***** (4 votes)
Views: 5908
This calculates the moonphases in a year.


Date of Birth time to Age conversion  

Type: code fragment
Added by: nogray
Entered: 15/04/2006
Last modified: 04/12/2005
Rating: - (fewer than 3 votes)
Views: 4612
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  

Type: class library
Added by: mohrt
Entered: 17/10/2000
Last modified: 01/12/2000
Rating: ***** (14 votes)
Views: 18898
Date_Calc - a class for manipulating and comparing Calendar dates, as well as formulating arrays of dates for traditional calendar display.


Get Age By Date  

Type: code fragment
Added by: mvilla213
Entered: 04/10/2000
Last modified: 01/12/2000
Rating: *** (6 votes)
Views: 10098
Returns age of person by the person's birth date.


get_age()  

Type: code fragment
Added by: russlndr
Entered: 08/10/2001
Last modified: 02/12/2001
Rating: - (fewer than 3 votes)
Views: 5827
Calculates number of years since input date.


Month Start and End Timestamps  

Type: code fragment
Added by: imposter
Entered: 26/03/2003
Last modified: 04/12/2002
Rating: - (fewer than 3 votes)
Views: 5149
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-to-Age-at-Given-Or-Current-Date Conversion function  

Type: code fragment
Added by: yaragn1
Entered: 15/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 7098
Simple Birthdate-Age function. Given three parameters (month, day, year), it will return a correct age as an integer, doesn't rely on Timestamp.

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.

For sanity if given two-digit years presumes date was in 20th century. Hope you find it useful. Not exactly rocket science.


sunrise sunset calculator  

Type: application
Added by: mflorell
Entered: 25/04/2000
Last modified: 08/12/1999
Rating: ***** (6 votes)
Views: 13905
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.


Time until event  

Type: code fragment
Added by: robf
Entered: 14/03/2000
Last modified: 08/12/1999
Rating: ***** (3 votes)
Views: 9492
Tells you how long there is until a given time


Timespan  

Type: class
Added by: B00zy
Entered: 31/07/2002
Last modified: 09/12/2001
Rating: - (fewer than 3 votes)
Views: 5758
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.


UK Tax Week  

Type: code fragment
Added by: waveydavey
Entered: 30/01/2003
Last modified: 03/12/2004
Rating: - (fewer than 3 votes)
Views: 4859
Returns UK Tax week (according to UK Inland Revenue rules) when passed a date. Not exciting, but useful!


What Week is a Date?  

Type: code fragment
Added by: dreamboy
Entered: 15/08/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6480
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.


When is Eastern  

Type: code fragment
Added by: steinol
Entered: 09/01/2004
Last modified: 01/12/2003
Rating: - (fewer than 3 votes)
Views: 4366
simple function to calculate eastersunday. input is the year you wish calculate. output is the day of eastersunday and the eastermonth.



Search



This Category All Categories