RE: [PHP] Unix-time problem

2001-03-04 Thread Don Read
On 05-Mar-01 Nicklas af Ekenstam wrote: > Hi! > > I wrote this simple function to return the current date minus supplied > number of years: > > function get_birthdate($age_in_years) { > > You, obviously, call it like this: echo get_birthdate(1); > Which would return a datestring that

[PHP] Unix-time problem

2001-03-04 Thread Nicklas af Ekenstam
Hi! I wrote this simple function to return the current date minus supplied number of years: function get_birthdate($age_in_years) { // get the current timestamp into an array $timestamp = time(); $date_time_array = getdate($timestamp); $hours = $dat